Skip to content

Commit

Permalink
Don't store a :stubbed_by_vcr request type on the request for Fakeweb
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Green committed Jul 3, 2012
1 parent a48c27d commit d465d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vcr/library_hooks/fakeweb.rb
Expand Up @@ -49,7 +49,7 @@ def request_type(*args)
end end


def set_typed_request_for_after_hook(request_type) def set_typed_request_for_after_hook(request_type)
@request.instance_variable_set(:@__vcr_request_type, request_type) @request.instance_variable_set(:@__vcr_request_type, request_type) unless request_type == :stubbed_by_vcr
super super
end end


Expand Down
2 changes: 1 addition & 1 deletion spec/vcr/library_hooks/fakeweb_spec.rb
Expand Up @@ -95,7 +95,7 @@ def make_post_request
ignored_body.should_not eq(recorded_body) ignored_body.should_not eq(recorded_body)
ignored_body.should match(/Response \d+/) ignored_body.should match(/Response \d+/)
end end

it "Make request twice against cassette using the same http request object" do it "Make request twice against cassette using the same http request object" do
uri = URI.parse("http://localhost:#{VCR::SinatraApp.port}/foo") uri = URI.parse("http://localhost:#{VCR::SinatraApp.port}/foo")
http = Net::HTTP.new(uri.host, uri.port) http = Net::HTTP.new(uri.host, uri.port)
Expand Down

0 comments on commit d465d9f

Please sign in to comment.