Skip to content

Commit

Permalink
Add spec for global :proxy setting on WSDL requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Jan 25, 2013
1 parent ad740ab commit b7504da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/savon/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ def new_wsdl_request
expect(wsdl_request.build).to be_an(HTTPI::Request)
end

describe "proxy" do
it "is set when specified" do
globals.proxy("http://proxy.example.com")
http_request.expects(:proxy=).with("http://proxy.example.com")

new_wsdl_request.build
end

it "is not set otherwise" do
http_request.expects(:proxy=).never
new_wsdl_request.build
end
end

describe "open timeout" do
it "is set when specified" do
globals.open_timeout(22)
Expand Down

0 comments on commit b7504da

Please sign in to comment.