Sha256: 3501c645fbf347af527a74e1bd49507b83586e03d52c487ff725728cb3198361
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
Shindo.tests('Excon stubs') do tests("stub({:method => :get}, {:body => 'body', :status => 200})") do connection = Excon.new('http://127.0.0.1:9292') connection.stub({:method => :get}, {:body => 'body', :status => 200}) response = connection.request(:method => :get, :path => '/content-length/100') tests('response.body').returns('body') do response.body end tests('response.headers').returns({}) do response.headers end tests('response.status').returns(200) do response.status end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
excon-0.6.0 | tests/stub_tests.rb |
excon-0.5.8 | tests/stub_tests.rb |
excon-0.5.7 | tests/stub_tests.rb |