fakes-rspec 0.1.3 → 0.3.1

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.
@@ -1,5 +1,5 @@
1
1
  module Fakes
2
2
  module RSpec
3
- VERSION = "0.1.3"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -93,5 +93,20 @@ describe "using the rspec extensions" do
93
93
  item.should have_received(:hello).at_most(1)
94
94
  item.should_not have_received(:goodbye).at_most(1)
95
95
  end
96
+ context "using the arg matching style" do
97
+ it "should be able to determing if a call was made using arg matchers" do
98
+ item = fake
99
+ item.hello("Yes")
100
+
101
+ item.should have_received(:hello,matches.any)
102
+ end
103
+
104
+ it "should be able to determing if a call was made using a combination of arg matchers and explicit values" do
105
+ item = fake
106
+ item.hello("Yes",2)
107
+
108
+ item.should have_received(:hello,matches.regex(/Y/),2)
109
+ end
110
+ end
96
111
  end
97
112
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakes-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-29 00:00:00.000000000 Z
12
+ date: 2012-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake