fakes-rspec 1.0.6 → 2.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55171a815038c0f65712a8f877e1f657f68d9b53
4
- data.tar.gz: 86fb178c137e9aadabfef6297cb737d990704ba3
3
+ metadata.gz: a31d41eefe7f164425a119dfc161ae76b5dc97f5
4
+ data.tar.gz: 386040e2e3f3d321ea271e7da32e4f36bff8154f
5
5
  SHA512:
6
- metadata.gz: 1cdc214fa61f529962a5ffabd96c6e1e1386fce50ae7e113d8328cce6844bc8ff4a47662a5860a71cfa61676844027ecd9f9af28d33ecd8a10537f18ed97a90c
7
- data.tar.gz: d4481127f8fe5b9ecf1260777b58eb4abe55d91597c12016946448f0c0328a6b963bd67f0f1f430964467b9a824e3685cdc76eaf792c9892b82de8816440ad2f
6
+ metadata.gz: b4f539e4bdd5d82f65c604a8f1cb5821f67ffa9bd0152774433f8a285afc8073eec87442d7db13b135ffd3a76ebb2d13b60dced80c42ee2700890f991bc148d7
7
+ data.tar.gz: 7630d8f7f2fec481fcb3fa8cb4d779a0e9b7b39258aa13d35676ac5a40e0d42f2fd435c1f36ddd441d9ceb91dfe80c85d755f2afd10ee405cef534c63ca4e532
@@ -6,7 +6,7 @@ module RSpec
6
6
  return Fakes::RSpec::ReceivedOccurrencesCriteria.new(create_received_criteria_from(the_call),the_call,occurence)
7
7
  end
8
8
 
9
- Matchers.define :have_received do|symbol,*args|
9
+ Matchers.define :have_received_message do|symbol,*args|
10
10
  @occurence_spec = Fakes::RSpec::NulloSpecification.instance
11
11
 
12
12
  chain :once do
@@ -1,5 +1,5 @@
1
1
  module Fakes
2
2
  module RSpec
3
- VERSION = "1.0.6"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -18,8 +18,8 @@ module Fakes
18
18
  subject.is_satisfied_by(the_arg).should be_false
19
19
  end
20
20
  it "should not use the occurrence or the call" do
21
- occurrence.should_not have_received(:is_satified_by)
22
- the_call.should_not have_received(:called_with)
21
+ occurrence.should_not have_received_message(:is_satisfied_by)
22
+ the_call.should_not have_received_message(:called_with)
23
23
  end
24
24
  end
25
25
  context "and the original criteria is satisfied" do
@@ -6,11 +6,11 @@ describe "using the rspec extensions" do
6
6
  item.hello
7
7
  item.last("other")
8
8
 
9
- item.should_not have_received(:hello,"world")
10
- item.should have_received(:hello)
11
- item.should_not have_received(:once_more)
12
- item.should_not have_received(:last,"hello")
13
- item.should have_received(:last,"other")
9
+ item.should_not have_received_message(:hello,"world")
10
+ item.should have_received_message(:hello)
11
+ item.should_not have_received_message(:once_more)
12
+ item.should_not have_received_message(:last,"hello")
13
+ item.should have_received_message(:last,"other")
14
14
  end
15
15
 
16
16
  it "should be able to determine if a call has been made a certain number of times" do
@@ -19,20 +19,20 @@ describe "using the rspec extensions" do
19
19
  item.hello
20
20
  item.last("other")
21
21
 
22
- item.should_not have_received(:hello,"world")
23
- item.should have_received(:hello).twice
24
- item.should have_received(:hello)
25
- item.should_not have_received(:once_more)
26
- item.should_not have_received(:last,"hello")
27
- item.should have_received(:last,"other").once
28
- item.should_not have_received(:last).twice
22
+ item.should_not have_received_message(:hello,"world")
23
+ item.should have_received_message(:hello).twice
24
+ item.should have_received_message(:hello)
25
+ item.should_not have_received_message(:once_more)
26
+ item.should_not have_received_message(:last,"hello")
27
+ item.should have_received_message(:last,"other").once
28
+ item.should_not have_received_message(:last).twice
29
29
  end
30
30
 
31
31
  it "should be able to determine if a call was made once" do
32
32
  item = fake
33
33
  item.hello
34
34
 
35
- item.should have_received(:hello).once
35
+ item.should have_received_message(:hello).once
36
36
  end
37
37
 
38
38
  it "should be able to determine if a call was made twice" do
@@ -40,7 +40,7 @@ describe "using the rspec extensions" do
40
40
  item.hello
41
41
  item.hello
42
42
 
43
- item.should have_received(:hello).twice
43
+ item.should have_received_message(:hello).twice
44
44
  end
45
45
 
46
46
  it "should be able to determine if a call was made at least once" do
@@ -48,7 +48,7 @@ describe "using the rspec extensions" do
48
48
  item.hello
49
49
  item.hello
50
50
 
51
- item.should have_received(:hello).at_least_once
51
+ item.should have_received_message(:hello).at_least_once
52
52
  end
53
53
 
54
54
  it "should be able to determine if a call was made at least twice" do
@@ -57,8 +57,8 @@ describe "using the rspec extensions" do
57
57
  item.hello
58
58
  item.hello
59
59
 
60
- item.should have_received(:hello).at_least_twice
61
- item.should have_received(:hello).at_least_twice
60
+ item.should have_received_message(:hello).at_least_twice
61
+ item.should have_received_message(:hello).at_least_twice
62
62
  end
63
63
 
64
64
 
@@ -68,8 +68,8 @@ describe "using the rspec extensions" do
68
68
  item.goodbye
69
69
  item.goodbye
70
70
 
71
- item.should have_received(:hello).at_most_once
72
- item.should_not have_received(:goodbye).at_most_once
71
+ item.should have_received_message(:hello).at_most_once
72
+ item.should_not have_received_message(:goodbye).at_most_once
73
73
  end
74
74
 
75
75
  it "should be able to determine if a call was made at most twice" do
@@ -79,8 +79,8 @@ describe "using the rspec extensions" do
79
79
  item.goodbye
80
80
  item.goodbye
81
81
 
82
- item.should have_received(:hello).at_most_twice
83
- item.should_not have_received(:goodbye).at_most_twice
82
+ item.should have_received_message(:hello).at_most_twice
83
+ item.should_not have_received_message(:goodbye).at_most_twice
84
84
  end
85
85
 
86
86
  it "should be able to determine if a call was made at least a specified number of times" do
@@ -90,22 +90,22 @@ describe "using the rspec extensions" do
90
90
  item.goodbye
91
91
  item.goodbye
92
92
 
93
- item.should have_received(:hello).at_most(1)
94
- item.should_not have_received(:goodbye).at_most(1)
93
+ item.should have_received_message(:hello).at_most(1)
94
+ item.should_not have_received_message(:goodbye).at_most(1)
95
95
  end
96
96
  context "using the arg matching style" do
97
97
  it "should be able to determing if a call was made using arg matchers" do
98
98
  item = fake
99
99
  item.hello("Yes")
100
100
 
101
- item.should have_received(:hello,arg_match.any)
101
+ item.should have_received_message(: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,arg_match.regex(/Y/),2)
108
+ item.should have_received_message(: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,arg_match.regex(/Y/),2)
124
+ item.should have_received_message(:hello,arg_match.regex(/Y/),2)
125
125
  end
126
126
  end
127
127
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakes-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Develop With Passion®
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake