Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Change debug output string format
  • Loading branch information
sandro committed Jan 18, 2011
1 parent a476ce4 commit 7dcaf4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ephemeral_response/fixture.rb
Expand Up @@ -96,7 +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}"
EphemeralResponse::Configuration.debug_output.puts "#{request.method} #{uri} saved as #{path}"
save
self.class.register self
end
Expand Down
2 changes: 1 addition & 1 deletion spec/ephemeral_response/fixture_spec.rb
Expand Up @@ -323,7 +323,7 @@
end

it "debugs saving the fixture" do
EphemeralResponse::Configuration.debug_output.should_receive(:puts).with(/saving GET request to http:\/\/example.com/)
EphemeralResponse::Configuration.debug_output.should_receive(:puts).with("GET http://example.com/ saved as #{fixture.path}")
fixture.register
end
end
Expand Down

0 comments on commit 7dcaf4d

Please sign in to comment.