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 CHANGED
@@ -1,3 +1,6 @@
1
+ * 0.4.7
2
+ - Improved error message
3
+
1
4
  * 0.4.6
2
5
  - Added Double#verbose and Double#verbose?
3
6
 
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ def run_suite
26
26
  end
27
27
 
28
28
  PKG_NAME = "rr"
29
- PKG_VERSION = "0.4.6"
29
+ PKG_VERSION = "0.4.7"
30
30
  PKG_FILES = FileList[
31
31
  '[A-Z]*',
32
32
  '*.rb',
@@ -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 #{Double.formatted_name(@method_name, args)}, expected\n"
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 foobar(:arg1, :arg2), expected\n" <<
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
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: