rr 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -77,25 +77,40 @@ module RR
|
|
77
77
|
@predicate3 = 'third'
|
78
78
|
end
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
80
|
+
describe "when mock.proxy ==" do
|
81
|
+
it "does not have infinite recursion" do
|
82
|
+
mock.proxy(@predicate1) == @predicate1
|
83
|
+
mock.proxy(@predicate2) == @predicate2
|
84
|
+
ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2).should == ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2)
|
85
|
+
|
86
|
+
mock.proxy(@predicate1) == @predicate1
|
87
|
+
mock.proxy(@predicate2) == @predicate3
|
88
|
+
ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2).should_not == ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate3)
|
89
|
+
end
|
90
|
+
|
91
|
+
it "matches Hashes properly (using ==)" do
|
92
|
+
mock.proxy(@predicate1) == {:foo => :bar}
|
93
|
+
@predicate1 == {:foo => :bar}
|
94
|
+
end
|
88
95
|
end
|
89
96
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
97
|
+
describe "when mock.proxy .eql?" do
|
98
|
+
it "does not have infinite recursion" do
|
99
|
+
mock.proxy(@predicate1).eql? @predicate1
|
100
|
+
mock.proxy(@predicate2).eql? @predicate2
|
101
|
+
ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2).should be_eql(ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2))
|
94
102
|
|
95
|
-
|
96
|
-
|
97
|
-
|
103
|
+
mock.proxy(@predicate1).eql? @predicate1
|
104
|
+
mock.proxy(@predicate2).eql? @predicate3
|
105
|
+
ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate2).should_not be_eql(ArgumentEqualityFunctionalFixture.new(@predicate1, @predicate3))
|
106
|
+
end
|
107
|
+
|
108
|
+
it "matches Hashes properly (using ==)" do
|
109
|
+
mock.proxy(@predicate1).eql?({:foo => :bar})
|
110
|
+
@predicate1.eql?({:foo => :bar})
|
111
|
+
end
|
98
112
|
end
|
113
|
+
|
99
114
|
end
|
100
115
|
end
|
101
116
|
|
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.8
|
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:
|