Permalink
Browse files

Use EphemeralResponse debugging on fixture save

  • Loading branch information...
1 parent 648b703 commit 78eb87c3372b7a13bef3abc5ad529810fea3306a Les Hill and Sandro Turriate committed with Pairing Workstation Leela Oct 8, 2010
@@ -96,6 +96,7 @@ def path
def register
unless Configuration.white_list.include? uri.host
+ EphemeralResponse::Configuration.debug_output.puts "EphemeralResponse: saving #{request.method} request to #{uri}"
save
self.class.register self
end
@@ -10,7 +10,6 @@ def connect
private :connect
def do_start_with_ephemeral_response
- D "EphemeralResponse: establishing connection to #{uri}"
connect_without_ephemeral_response
@started = true
end
@@ -321,6 +321,11 @@
fixture.register
EphemeralResponse::Fixture.fixtures.should have_key(fixture.identifier)
end
+
+ it "debugs saving the fixture" do
+ EphemeralResponse::Configuration.debug_output.should_receive(:puts).with(/saving GET request to http:\/\/example.com/)
+ fixture.register
+ end
end
context "uri is white listed" do

0 comments on commit 78eb87c

Please sign in to comment.