fakes-rspec 0.3.8 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/core/version.rb +1 -1
- data/spec/specs/usage_spec.rb +3 -3
- metadata +1 -1
data/lib/core/version.rb
CHANGED
data/spec/specs/usage_spec.rb
CHANGED
@@ -98,14 +98,14 @@ describe "using the rspec extensions" do
|
|
98
98
|
item = fake
|
99
99
|
item.hello("Yes")
|
100
100
|
|
101
|
-
item.should have_received(:hello,
|
101
|
+
item.should have_received(:hello,arg_match.any)
|
102
102
|
end
|
103
103
|
|
104
104
|
it "should be able to determing if a call was made using a combination of arg matchers and explicit values" do
|
105
105
|
item = fake
|
106
106
|
item.hello("Yes",2)
|
107
107
|
|
108
|
-
item.should have_received(:hello,
|
108
|
+
item.should have_received(:hello,arg_match.regex(/Y/),2)
|
109
109
|
end
|
110
110
|
end
|
111
111
|
context "using class swapping" do
|
@@ -121,7 +121,7 @@ describe "using the rspec extensions" do
|
|
121
121
|
item = fake
|
122
122
|
item.hello("Yes",2)
|
123
123
|
|
124
|
-
item.should have_received(:hello,
|
124
|
+
item.should have_received(:hello,arg_match.regex(/Y/),2)
|
125
125
|
end
|
126
126
|
end
|
127
127
|
end
|