Permalink
Browse files

Invoking method on a class, not an instance.

  • Loading branch information...
1 parent 72cd989 commit 6c5e0ecc59c3205367ca2811e4bf267cb655cafe @bblimke committed Nov 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/webmock/request_execution_verifier.rb
@@ -28,7 +28,7 @@ def does_not_match?
def failure_message
expected_times_executed = @expected_times_executed || 1
text = %Q(The request #{request_pattern.to_s} was expected to execute #{times(expected_times_executed)} but it executed #{times(times_executed)})
- text << executed_requests_message
+ text << self.class.executed_requests_message
text
end
@@ -38,7 +38,7 @@ def negative_failure_message
else
%Q(The request #{request_pattern.to_s} was expected to execute 0 times but it executed #{times(times_executed)})
end
- text << executed_requests_message
+ text << self.class.executed_requests_message
text
end

0 comments on commit 6c5e0ec

Please sign in to comment.