rr 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/Rakefile +1 -1
- data/lib/rr/adapters/rr_methods.rb +4 -1
- data/lib/rr/space.rb +1 -1
- data/spec/rr/space/space_helper.rb +1 -1
- data/spec/rr/space/space_verify_spec.rb +2 -2
- metadata +2 -2
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ module RR
|
|
4
4
|
# Verifies all the DoubleInsertion objects have met their
|
5
5
|
# TimesCalledExpectations.
|
6
6
|
def verify
|
7
|
-
RR::Space.instance.
|
7
|
+
RR::Space.instance.verify_doubles
|
8
8
|
end
|
9
9
|
|
10
10
|
# Resets the registered Doubles and ordered Doubles
|
@@ -225,4 +225,7 @@ module RR
|
|
225
225
|
end
|
226
226
|
end
|
227
227
|
end
|
228
|
+
module Extensions
|
229
|
+
InstanceMethods = Adapters::RRMethods
|
230
|
+
end
|
228
231
|
end
|
data/lib/rr/space.rb
CHANGED
@@ -87,7 +87,7 @@ module RR
|
|
87
87
|
|
88
88
|
# Verifies all the DoubleInsertion objects have met their
|
89
89
|
# TimesCalledExpectations.
|
90
|
-
def
|
90
|
+
def verify_doubles
|
91
91
|
@double_insertions.each do |object, method_double_map|
|
92
92
|
method_double_map.keys.each do |method_name|
|
93
93
|
verify_double(object, method_name)
|
@@ -28,7 +28,7 @@ module RR
|
|
28
28
|
describe Space do
|
29
29
|
it_should_behave_like "RR::Space"
|
30
30
|
|
31
|
-
describe "#
|
31
|
+
describe "#verify_doubles" do
|
32
32
|
before do
|
33
33
|
@space = Space.new
|
34
34
|
@object1 = Object.new
|
@@ -66,7 +66,7 @@ module RR
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
-
@space.
|
69
|
+
@space.verify_doubles
|
70
70
|
double1_verify_calls.should == 1
|
71
71
|
double2_verify_calls.should == 1
|
72
72
|
double1_reset_calls.should == 1
|
metadata
CHANGED
@@ -3,8 +3,8 @@ 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.
|
7
|
-
date: 2007-12-
|
6
|
+
version: 0.4.1
|
7
|
+
date: 2007-12-31 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:
|
10
10
|
- lib
|