rr 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/Rakefile +1 -1
- data/lib/rr/double_injection.rb +2 -1
- data/spec/rr/double/double_injection_dispatching_spec.rb +2 -1
- metadata +1 -1
data/CHANGES
CHANGED
data/Rakefile
CHANGED
data/lib/rr/double_injection.rb
CHANGED
@@ -108,7 +108,8 @@ module RR
|
|
108
108
|
|
109
109
|
def double_not_found_error(*args)
|
110
110
|
message = "On object #{object},\n"
|
111
|
-
message << "unexpected method invocation
|
111
|
+
message << "unexpected method invocation in the next line followed by the expected invocations\n"
|
112
|
+
message << " #{Double.formatted_name(@method_name, args)}\n"
|
112
113
|
message << Double.list_message_part(@doubles)
|
113
114
|
raise Errors::DoubleNotFoundError, message
|
114
115
|
end
|
@@ -68,7 +68,8 @@ module RR
|
|
68
68
|
error = e
|
69
69
|
end
|
70
70
|
error.message.should include("On object #<Object")
|
71
|
-
expected_double_message_part = "unexpected method invocation
|
71
|
+
expected_double_message_part = "unexpected method invocation in the next line followed by the expected invocations\n" <<
|
72
|
+
" foobar(:arg1, :arg2)\n"
|
72
73
|
"- foobar(1, 2)\n" <<
|
73
74
|
"- foobar(3)"
|
74
75
|
error.message.should include(expected_double_message_part)
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.4.
|
6
|
+
version: 0.4.7
|
7
7
|
date: 2008-01-23 00:00:00 -08:00
|
8
8
|
summary: RR (Double Ruby) is a double framework that features a rich selection of double techniques and a terse syntax. http://xunitpatterns.com/Test%20Double.html
|
9
9
|
require_paths:
|