Skip to content

Commit

Permalink
Fixed one spec failing after merging tomafro's fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Blimke committed Mar 13, 2010
1 parent a8d08af commit e203a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/webmock_spec.rb
Expand Up @@ -356,13 +356,13 @@ def call(request)
end

it "should return evaluated response headers" do
stub_http_request(:post, "www.example.com").to_return(lambda { |request|
stub_http_request(:get, "www.example.com").to_return(lambda { |request|
{:headers => request.headers}
})
http_request(:post, "http://www.example.com/", :headers => {'A' => 'B'}).headers['A'].should == 'B'
http_request(:get, "http://www.example.com/", :headers => {'A' => 'B'}).headers['A'].should == 'B'
end

it "should create dynamic responses from Procs" do
it "should create dynamic responses from blocks" do
stub_http_request(:post, "www.example.com").to_return do |request|
{:body => request.body}
end
Expand Down

0 comments on commit e203a46

Please sign in to comment.