Sha256: 344b449e1212d32340238edda82c9ff4c67079d16b7c64d1f68c8327358f2038
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
# frozen_string_literal: true require_relative "../lib/code-ruby" require "sinatra" require "webmock/rspec" class FakeHttpBin < Sinatra::Base set :host_authorization, { permitted_hosts: ["httpbin.org"] } %w[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH].each do |verb| route verb, "/status/:status" do status params[:status].to_i end end end WebMock.disable_net_connect! RSpec.configure do |config| config.before { stub_request(:any, /httpbin\.org/).to_rack(FakeHttpBin) } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
code-ruby-1.2.5 | spec/spec_helper.rb |
code-ruby-1.2.4 | spec/spec_helper.rb |
code-ruby-1.2.3 | spec/spec_helper.rb |
code-ruby-1.2.2 | spec/spec_helper.rb |
code-ruby-1.2.1 | spec/spec_helper.rb |