Sha256: 3a84dbd29ad896e3b4c773dae6af8beb3ebc59b9204419a10ccc0e31e59f42d0

Contents?: true

Size: 494 Bytes

Versions: 13

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'
require 'acceptance/webmock_shared'
require 'acceptance/excon/excon_spec_helper'

describe "Excon" do
  include ExconSpecHelper
  include_context "with WebMock", :no_status_message, :no_url_auth

  it 'should allow Excon requests to use query hash paramters' do
    stub_request(:get, "http://example.com/resource/?a=1&b=2").to_return(:body => "abc")
    Excon.get('http://example.com', :path => "resource/", :query => {:a => 1, :b => 2}).body.should == "abc"
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
simple-client-0.0.3 vendor/bundle/ruby/1.9.1/gems/webmock-1.8.8/spec/acceptance/excon/excon_spec.rb
webmock-1.8.10 spec/acceptance/excon/excon_spec.rb
webmock-1.8.9 spec/acceptance/excon/excon_spec.rb
simple-client-0.0.2 vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/excon/excon_spec.rb
webmock-1.8.8 spec/acceptance/excon/excon_spec.rb
webmock-1.8.7 spec/acceptance/excon/excon_spec.rb
webmock-1.8.6 spec/acceptance/excon/excon_spec.rb
webmock-1.8.5 spec/acceptance/excon/excon_spec.rb
webmock-1.8.4 spec/acceptance/excon/excon_spec.rb
webmock-1.8.3 spec/acceptance/excon/excon_spec.rb
webmock-1.8.2 spec/acceptance/excon/excon_spec.rb
webmock-1.8.1 spec/acceptance/excon/excon_spec.rb
webmock-1.8.0 spec/acceptance/excon/excon_spec.rb