rspec-mocks 2.6.0 → 2.7.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/features/Scope.md +17 -0
- data/features/argument_matchers/README.md +27 -0
- data/features/argument_matchers/explicit.feature +60 -0
- data/features/argument_matchers/general_matchers.feature +85 -0
- data/features/argument_matchers/type_matchers.feature +25 -0
- data/features/message_expectations/any_instance.feature +2 -0
- data/features/message_expectations/receive_counts.feature +209 -0
- data/features/method_stubs/README.md +6 -10
- data/features/method_stubs/any_instance.feature +111 -1
- data/features/method_stubs/simple_return_value.feature +34 -25
- data/features/method_stubs/stub_implementation.feature +1 -1
- data/features/method_stubs/to_ary.feature +12 -10
- data/features/support/env.rb +1 -1
- data/lib/rspec/mocks.rb +1 -1
- data/lib/rspec/mocks/any_instance.rb +8 -235
- data/lib/rspec/mocks/any_instance/chain.rb +49 -0
- data/lib/rspec/mocks/any_instance/expectation_chain.rb +33 -0
- data/lib/rspec/mocks/any_instance/message_chains.rb +48 -0
- data/lib/rspec/mocks/any_instance/recorder.rb +162 -0
- data/lib/rspec/mocks/any_instance/stub_chain.rb +35 -0
- data/lib/rspec/mocks/any_instance/stub_chain_chain.rb +34 -0
- data/lib/rspec/mocks/argument_expectation.rb +1 -1
- data/lib/rspec/mocks/extensions/marshal.rb +1 -1
- data/lib/rspec/mocks/extensions/psych.rb +1 -1
- data/lib/rspec/mocks/methods.rb +1 -1
- data/lib/rspec/mocks/mock.rb +2 -2
- data/lib/rspec/mocks/proxy.rb +1 -1
- data/lib/rspec/mocks/version.rb +1 -1
- data/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/spec/rspec/mocks/any_instance_spec.rb +147 -2
- data/spec/rspec/mocks/any_number_of_times_spec.rb +2 -2
- data/spec/rspec/mocks/argument_expectation_spec.rb +15 -3
- data/spec/rspec/mocks/at_least_spec.rb +1 -1
- data/spec/rspec/mocks/at_most_spec.rb +1 -1
- data/spec/rspec/mocks/bug_report_10263_spec.rb +1 -1
- data/spec/rspec/mocks/bug_report_7611_spec.rb +1 -1
- data/spec/rspec/mocks/bug_report_8165_spec.rb +2 -2
- data/spec/rspec/mocks/bug_report_957_spec.rb +2 -2
- data/spec/rspec/mocks/failing_argument_matchers_spec.rb +1 -1
- data/spec/rspec/mocks/hash_including_matcher_spec.rb +11 -11
- data/spec/rspec/mocks/hash_not_including_matcher_spec.rb +6 -6
- data/spec/rspec/mocks/mock_spec.rb +49 -43
- data/spec/rspec/mocks/multiple_return_value_spec.rb +26 -26
- data/spec/rspec/mocks/partial_mock_spec.rb +3 -2
- data/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +1 -0
- data/spec/rspec/mocks/passing_argument_matchers_spec.rb +3 -3
- data/spec/rspec/mocks/precise_counts_spec.rb +1 -1
- data/spec/rspec/mocks/serialization_spec.rb +7 -2
- data/spec/rspec/mocks/stub_implementation_spec.rb +6 -6
- data/spec/rspec/mocks/stub_spec.rb +6 -6
- data/spec/rspec/mocks/to_ary_spec.rb +9 -0
- metadata +54 -47
- data/.autotest +0 -7
- data/.document +0 -5
- data/.gitignore +0 -10
- data/.travis.yml +0 -7
- data/Gemfile +0 -40
- data/Guardfile +0 -8
- data/License.txt +0 -22
- data/Rakefile +0 -75
- data/autotest/discover.rb +0 -1
- data/cucumber.yml +0 -2
- data/features/.nav +0 -17
- data/features/Changelog.md +0 -80
- data/rspec-mocks.gemspec +0 -25
- data/specs.watchr +0 -57
@@ -10,15 +10,15 @@ module RSpec
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "returns values in order to consecutive calls" do
|
13
|
-
@mock.message.should
|
14
|
-
@mock.message.should
|
15
|
-
@mock.message.should
|
13
|
+
@mock.message.should eq @return_values[0]
|
14
|
+
@mock.message.should eq @return_values[1]
|
15
|
+
@mock.message.should eq @return_values[2]
|
16
16
|
@mock.rspec_verify
|
17
17
|
end
|
18
18
|
|
19
19
|
it "complains when there are too few calls" do
|
20
|
-
@mock.message.should
|
21
|
-
@mock.message.should
|
20
|
+
@mock.message.should eq @return_values[0]
|
21
|
+
@mock.message.should eq @return_values[1]
|
22
22
|
expect { @mock.rspec_verify }.to raise_error(
|
23
23
|
RSpec::Mocks::MockExpectationError,
|
24
24
|
%Q|(Mock "mock").message(any args)\n expected: 3 times\n received: 2 times|
|
@@ -26,10 +26,10 @@ module RSpec
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "complains when there are too many calls" do
|
29
|
-
@mock.message.should
|
30
|
-
@mock.message.should
|
31
|
-
@mock.message.should
|
32
|
-
@mock.message.should
|
29
|
+
@mock.message.should eq @return_values[0]
|
30
|
+
@mock.message.should eq @return_values[1]
|
31
|
+
@mock.message.should eq @return_values[2]
|
32
|
+
@mock.message.should eq @return_values[2]
|
33
33
|
expect { @mock.rspec_verify }.to raise_error(
|
34
34
|
RSpec::Mocks::MockExpectationError,
|
35
35
|
%Q|(Mock "mock").message(any args)\n expected: 3 times\n received: 4 times|
|
@@ -38,10 +38,10 @@ module RSpec
|
|
38
38
|
|
39
39
|
it "doesn't complain when there are too many calls but method is stubbed too" do
|
40
40
|
@mock.stub(:message).and_return :stub_result
|
41
|
-
@mock.message.should
|
42
|
-
@mock.message.should
|
43
|
-
@mock.message.should
|
44
|
-
@mock.message.should
|
41
|
+
@mock.message.should eq @return_values[0]
|
42
|
+
@mock.message.should eq @return_values[1]
|
43
|
+
@mock.message.should eq @return_values[2]
|
44
|
+
@mock.message.should eq :stub_result
|
45
45
|
expect { @mock.rspec_verify }.to_not raise_error(RSpec::Mocks::MockExpectationError)
|
46
46
|
end
|
47
47
|
end
|
@@ -54,16 +54,16 @@ module RSpec
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it "returns values in order to consecutive calls" do
|
57
|
-
@mock.message.should
|
58
|
-
@mock.message.should
|
59
|
-
@mock.message.should
|
57
|
+
@mock.message.should eq @return_values[0]
|
58
|
+
@mock.message.should eq @return_values[1]
|
59
|
+
@mock.message.should eq @return_values[2]
|
60
60
|
@mock.rspec_verify
|
61
61
|
end
|
62
62
|
|
63
63
|
it "complains when there are too few calls" do
|
64
64
|
third = Object.new
|
65
|
-
@mock.message.should
|
66
|
-
@mock.message.should
|
65
|
+
@mock.message.should eq @return_values[0]
|
66
|
+
@mock.message.should eq @return_values[1]
|
67
67
|
expect { @mock.rspec_verify }.to raise_error(
|
68
68
|
RSpec::Mocks::MockExpectationError,
|
69
69
|
%Q|(Mock "mock").message(any args)\n expected: 3 times\n received: 2 times|
|
@@ -72,10 +72,10 @@ module RSpec
|
|
72
72
|
|
73
73
|
it "complains when there are too many calls" do
|
74
74
|
third = Object.new
|
75
|
-
@mock.message.should
|
76
|
-
@mock.message.should
|
77
|
-
@mock.message.should
|
78
|
-
@mock.message.should
|
75
|
+
@mock.message.should eq @return_values[0]
|
76
|
+
@mock.message.should eq @return_values[1]
|
77
|
+
@mock.message.should eq @return_values[2]
|
78
|
+
@mock.message.should eq @return_values[2]
|
79
79
|
expect { @mock.rspec_verify }.to raise_error(
|
80
80
|
RSpec::Mocks::MockExpectationError,
|
81
81
|
%Q|(Mock "mock").message(any args)\n expected: 3 times\n received: 4 times|
|
@@ -85,10 +85,10 @@ module RSpec
|
|
85
85
|
it "complains when there are too many calls and method is stubbed too" do
|
86
86
|
third = Object.new
|
87
87
|
@mock.stub(:message).and_return :stub_result
|
88
|
-
@mock.message.should
|
89
|
-
@mock.message.should
|
90
|
-
@mock.message.should
|
91
|
-
@mock.message.should
|
88
|
+
@mock.message.should eq @return_values[0]
|
89
|
+
@mock.message.should eq @return_values[1]
|
90
|
+
@mock.message.should eq @return_values[2]
|
91
|
+
@mock.message.should eq :stub_result
|
92
92
|
expect { @mock.rspec_verify }.to raise_error(
|
93
93
|
RSpec::Mocks::MockExpectationError,
|
94
94
|
%Q|(Mock "mock").message(any args)\n expected: 3 times\n received: 4 times|
|
@@ -84,9 +84,10 @@ module RSpec
|
|
84
84
|
it "uses reports nil in the error message" do
|
85
85
|
allow_message_expectations_on_nil
|
86
86
|
|
87
|
-
@
|
87
|
+
@nil = nil
|
88
|
+
@nil.should_receive(:foobar)
|
88
89
|
expect {
|
89
|
-
@
|
90
|
+
@nil.rspec_verify
|
90
91
|
}.to raise_error(
|
91
92
|
RSpec::Mocks::MockExpectationError,
|
92
93
|
%Q|(nil).foobar(any args)\n expected: 1 time\n received: 0 times|
|
@@ -87,11 +87,11 @@ module RSpec
|
|
87
87
|
context "handling block matchers" do
|
88
88
|
it "matches arguments against RSpec expectations" do
|
89
89
|
@double.should_receive(:random_call).with {|arg1, arg2, arr, *rest|
|
90
|
-
arg1.should
|
90
|
+
arg1.should eq 5
|
91
91
|
arg2.should have_at_least(3).characters
|
92
92
|
arg2.should have_at_most(10).characters
|
93
|
-
arr.map {|i| i * 2}.should
|
94
|
-
rest.should
|
93
|
+
arr.map {|i| i * 2}.should eq [2,4,6]
|
94
|
+
rest.should eq [:fee, "fi", 4]
|
95
95
|
}
|
96
96
|
@double.random_call 5, "hello", [1,2,3], :fee, "fi", 4
|
97
97
|
end
|
@@ -33,7 +33,7 @@ module RSpec
|
|
33
33
|
|
34
34
|
it "returns the value given by a block when the exactly once method is called" do
|
35
35
|
@mock.should_receive(:to_s).exactly(:once) { "testing" }
|
36
|
-
@mock.to_s.should
|
36
|
+
@mock.to_s.should eq "testing"
|
37
37
|
@mock.rspec_verify
|
38
38
|
end
|
39
39
|
|
@@ -64,7 +64,12 @@ module RSpec
|
|
64
64
|
end
|
65
65
|
|
66
66
|
with_yaml_loaded do
|
67
|
-
compiled_with_psych =
|
67
|
+
compiled_with_psych = begin
|
68
|
+
require 'psych'
|
69
|
+
true
|
70
|
+
rescue LoadError => e
|
71
|
+
false
|
72
|
+
end
|
68
73
|
|
69
74
|
if compiled_with_psych
|
70
75
|
context 'using Syck as the YAML engine' do
|
@@ -98,7 +103,7 @@ module RSpec
|
|
98
103
|
|
99
104
|
it 'does not interfere with its marshalling' do
|
100
105
|
marshalled_copy = Marshal.load(Marshal.dump(subject))
|
101
|
-
marshalled_copy.should
|
106
|
+
marshalled_copy.should eq subject
|
102
107
|
end
|
103
108
|
end
|
104
109
|
end
|
@@ -7,7 +7,7 @@ module RSpec
|
|
7
7
|
it "execs the block when called" do
|
8
8
|
obj = stub()
|
9
9
|
obj.stub(:foo) { :bar }
|
10
|
-
obj.foo.should
|
10
|
+
obj.foo.should eq :bar
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -15,7 +15,7 @@ module RSpec
|
|
15
15
|
it "execs the block with that arg when called" do
|
16
16
|
obj = stub()
|
17
17
|
obj.stub(:foo) {|given| given}
|
18
|
-
obj.foo(:bar).should
|
18
|
+
obj.foo(:bar).should eq :bar
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -23,7 +23,7 @@ module RSpec
|
|
23
23
|
it "execs the block when called" do
|
24
24
|
obj = stub()
|
25
25
|
obj.stub(:foo) {|*given| given.first}
|
26
|
-
obj.foo(:bar).should
|
26
|
+
obj.foo(:bar).should eq :bar
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -35,7 +35,7 @@ module RSpec
|
|
35
35
|
def obj.foo; :original; end
|
36
36
|
obj.stub(:foo)
|
37
37
|
obj.unstub(:foo)
|
38
|
-
obj.foo.should
|
38
|
+
obj.foo.should eq :original
|
39
39
|
end
|
40
40
|
|
41
41
|
it "removes all stubs with the supplied method name" do
|
@@ -44,7 +44,7 @@ module RSpec
|
|
44
44
|
obj.stub(:foo).with(1)
|
45
45
|
obj.stub(:foo).with(2)
|
46
46
|
obj.unstub(:foo)
|
47
|
-
obj.foo.should
|
47
|
+
obj.foo.should eq :original
|
48
48
|
end
|
49
49
|
|
50
50
|
it "does not remove any expectations with the same method name" do
|
@@ -54,7 +54,7 @@ module RSpec
|
|
54
54
|
obj.stub(:foo).with(1)
|
55
55
|
obj.stub(:foo).with(2)
|
56
56
|
obj.unstub(:foo)
|
57
|
-
obj.foo(3).should
|
57
|
+
obj.foo(3).should eq :three
|
58
58
|
end
|
59
59
|
|
60
60
|
it "raises a MockExpectationError if the method has not been stubbed" do
|
@@ -134,7 +134,7 @@ module RSpec
|
|
134
134
|
@instance.stub(:method_that_yields).and_yield(:yielded_obj)
|
135
135
|
current_value = :value_before
|
136
136
|
@instance.method_that_yields {|val| current_value = val}
|
137
|
-
current_value.should
|
137
|
+
current_value.should eq :yielded_obj
|
138
138
|
@instance.rspec_verify
|
139
139
|
end
|
140
140
|
|
@@ -143,7 +143,7 @@ module RSpec
|
|
143
143
|
and_yield(:another_value)
|
144
144
|
current_value = []
|
145
145
|
@instance.method_that_yields_multiple_times {|val| current_value << val}
|
146
|
-
current_value.should
|
146
|
+
current_value.should eq [:yielded_value, :another_value]
|
147
147
|
@instance.rspec_verify
|
148
148
|
end
|
149
149
|
|
@@ -151,7 +151,7 @@ module RSpec
|
|
151
151
|
yielded_obj = double("my mock")
|
152
152
|
yielded_obj.should_receive(:foo).with(:bar)
|
153
153
|
@instance.stub(:method_that_yields_and_returns).and_yield(yielded_obj).and_return(:baz)
|
154
|
-
@instance.method_that_yields_and_returns { |o| o.foo :bar }.should
|
154
|
+
@instance.method_that_yields_and_returns { |o| o.foo :bar }.should eq :baz
|
155
155
|
end
|
156
156
|
|
157
157
|
it "throws when told to" do
|
@@ -163,13 +163,13 @@ module RSpec
|
|
163
163
|
|
164
164
|
it "overrides a pre-existing method" do
|
165
165
|
@stub.stub(:existing_instance_method).and_return(:updated_stub_value)
|
166
|
-
@stub.existing_instance_method.should
|
166
|
+
@stub.existing_instance_method.should eq :updated_stub_value
|
167
167
|
end
|
168
168
|
|
169
169
|
it "overrides a pre-existing stub" do
|
170
170
|
@stub.stub(:foo) { 'bar' }
|
171
171
|
@stub.stub(:foo) { 'baz' }
|
172
|
-
@stub.foo.should
|
172
|
+
@stub.foo.should eq 'baz'
|
173
173
|
end
|
174
174
|
|
175
175
|
it "allows a stub and an expectation" do
|
@@ -181,7 +181,7 @@ module RSpec
|
|
181
181
|
|
182
182
|
it "calculates return value by executing block passed to #and_return" do
|
183
183
|
@stub.stub(:something).with("a","b","c").and_return { |a,b,c| c+b+a }
|
184
|
-
@stub.something("a","b","c").should
|
184
|
+
@stub.something("a","b","c").should eq "cba"
|
185
185
|
@stub.rspec_verify
|
186
186
|
end
|
187
187
|
end
|
@@ -7,11 +7,20 @@ describe "a double receiving to_ary" do
|
|
7
7
|
obj.to_ary.should be_nil
|
8
8
|
end.to raise_error(NoMethodError)
|
9
9
|
end
|
10
|
+
|
11
|
+
it "doesn't respond" do
|
12
|
+
obj.should_not respond_to(:to_ary)
|
13
|
+
end
|
10
14
|
|
11
15
|
it "can be overridden with a stub" do
|
12
16
|
obj.stub(:to_ary) { :non_nil_value }
|
13
17
|
obj.to_ary.should be(:non_nil_value)
|
14
18
|
end
|
19
|
+
|
20
|
+
it "responds when overriden" do
|
21
|
+
obj.stub(:to_ary) { :non_nil_value }
|
22
|
+
obj.should respond_to(:to_ary)
|
23
|
+
end
|
15
24
|
|
16
25
|
it "supports Array#flatten" do
|
17
26
|
obj = double('foo')
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424039
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 2.7.0.rc1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- David Chelimsky
|
@@ -16,8 +18,7 @@ autorequire:
|
|
16
18
|
bindir: bin
|
17
19
|
cert_chain: []
|
18
20
|
|
19
|
-
date: 2011-
|
20
|
-
default_executable:
|
21
|
+
date: 2011-10-09 00:00:00 Z
|
21
22
|
dependencies: []
|
22
23
|
|
23
24
|
description: RSpec's 'test double' framework, with support for stubbing and mocking
|
@@ -29,39 +30,14 @@ extensions: []
|
|
29
30
|
extra_rdoc_files:
|
30
31
|
- README.md
|
31
32
|
files:
|
32
|
-
- .autotest
|
33
|
-
- .document
|
34
|
-
- .gitignore
|
35
|
-
- .travis.yml
|
36
|
-
- Gemfile
|
37
|
-
- Guardfile
|
38
|
-
- License.txt
|
39
|
-
- README.md
|
40
|
-
- Rakefile
|
41
|
-
- autotest/discover.rb
|
42
|
-
- cucumber.yml
|
43
|
-
- features/.nav
|
44
|
-
- features/Changelog.md
|
45
|
-
- features/README.markdown
|
46
|
-
- features/Upgrade.md
|
47
|
-
- features/message_expectations/README.md
|
48
|
-
- features/message_expectations/any_instance.feature
|
49
|
-
- features/message_expectations/block_local_expectations.feature.pending
|
50
|
-
- features/message_expectations/expect_message.feature
|
51
|
-
- features/message_expectations/warn_when_expectation_is_set_on_nil.feature
|
52
|
-
- features/method_stubs/README.md
|
53
|
-
- features/method_stubs/any_instance.feature
|
54
|
-
- features/method_stubs/as_null_object.feature
|
55
|
-
- features/method_stubs/simple_return_value.feature
|
56
|
-
- features/method_stubs/stub_chain.feature
|
57
|
-
- features/method_stubs/stub_implementation.feature
|
58
|
-
- features/method_stubs/to_ary.feature
|
59
|
-
- features/outside_rspec/configuration.feature
|
60
|
-
- features/outside_rspec/standalone.feature
|
61
|
-
- features/step_definitions/additional_cli_steps.rb
|
62
|
-
- features/support/env.rb
|
63
33
|
- lib/rspec/mocks.rb
|
64
34
|
- lib/rspec/mocks/any_instance.rb
|
35
|
+
- lib/rspec/mocks/any_instance/chain.rb
|
36
|
+
- lib/rspec/mocks/any_instance/expectation_chain.rb
|
37
|
+
- lib/rspec/mocks/any_instance/message_chains.rb
|
38
|
+
- lib/rspec/mocks/any_instance/recorder.rb
|
39
|
+
- lib/rspec/mocks/any_instance/stub_chain.rb
|
40
|
+
- lib/rspec/mocks/any_instance/stub_chain_chain.rb
|
65
41
|
- lib/rspec/mocks/argument_expectation.rb
|
66
42
|
- lib/rspec/mocks/argument_matchers.rb
|
67
43
|
- lib/rspec/mocks/error_generator.rb
|
@@ -82,8 +58,33 @@ files:
|
|
82
58
|
- lib/rspec/mocks/standalone.rb
|
83
59
|
- lib/rspec/mocks/version.rb
|
84
60
|
- lib/spec/mocks.rb
|
85
|
-
-
|
61
|
+
- README.md
|
62
|
+
- features/README.markdown
|
63
|
+
- features/Scope.md
|
64
|
+
- features/Upgrade.md
|
65
|
+
- features/argument_matchers/README.md
|
66
|
+
- features/argument_matchers/explicit.feature
|
67
|
+
- features/argument_matchers/general_matchers.feature
|
68
|
+
- features/argument_matchers/type_matchers.feature
|
69
|
+
- features/message_expectations/README.md
|
70
|
+
- features/message_expectations/any_instance.feature
|
71
|
+
- features/message_expectations/block_local_expectations.feature.pending
|
72
|
+
- features/message_expectations/expect_message.feature
|
73
|
+
- features/message_expectations/receive_counts.feature
|
74
|
+
- features/message_expectations/warn_when_expectation_is_set_on_nil.feature
|
75
|
+
- features/method_stubs/README.md
|
76
|
+
- features/method_stubs/any_instance.feature
|
77
|
+
- features/method_stubs/as_null_object.feature
|
78
|
+
- features/method_stubs/simple_return_value.feature
|
79
|
+
- features/method_stubs/stub_chain.feature
|
80
|
+
- features/method_stubs/stub_implementation.feature
|
81
|
+
- features/method_stubs/to_ary.feature
|
82
|
+
- features/outside_rspec/configuration.feature
|
83
|
+
- features/outside_rspec/standalone.feature
|
84
|
+
- features/step_definitions/additional_cli_steps.rb
|
85
|
+
- features/support/env.rb
|
86
86
|
- spec/rspec/mocks/and_yield_spec.rb
|
87
|
+
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
87
88
|
- spec/rspec/mocks/any_instance_spec.rb
|
88
89
|
- spec/rspec/mocks/any_number_of_times_spec.rb
|
89
90
|
- spec/rspec/mocks/argument_expectation_spec.rb
|
@@ -126,8 +127,6 @@ files:
|
|
126
127
|
- spec/rspec/mocks/twice_counts_spec.rb
|
127
128
|
- spec/rspec/mocks_spec.rb
|
128
129
|
- spec/spec_helper.rb
|
129
|
-
- specs.watchr
|
130
|
-
has_rdoc: true
|
131
130
|
homepage: http://github.com/rspec/rspec-mocks
|
132
131
|
licenses: []
|
133
132
|
|
@@ -148,27 +147,34 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
148
|
none: false
|
150
149
|
requirements:
|
151
|
-
- - "
|
150
|
+
- - ">"
|
152
151
|
- !ruby/object:Gem::Version
|
153
|
-
hash:
|
152
|
+
hash: 25
|
154
153
|
segments:
|
155
|
-
-
|
156
|
-
|
154
|
+
- 1
|
155
|
+
- 3
|
156
|
+
- 1
|
157
|
+
version: 1.3.1
|
157
158
|
requirements: []
|
158
159
|
|
159
160
|
rubyforge_project: rspec
|
160
|
-
rubygems_version: 1.6
|
161
|
+
rubygems_version: 1.8.6
|
161
162
|
signing_key:
|
162
163
|
specification_version: 3
|
163
|
-
summary: rspec-mocks-2.
|
164
|
+
summary: rspec-mocks-2.7.0.rc1
|
164
165
|
test_files:
|
165
|
-
- features/Changelog.md
|
166
166
|
- features/README.markdown
|
167
|
+
- features/Scope.md
|
167
168
|
- features/Upgrade.md
|
169
|
+
- features/argument_matchers/README.md
|
170
|
+
- features/argument_matchers/explicit.feature
|
171
|
+
- features/argument_matchers/general_matchers.feature
|
172
|
+
- features/argument_matchers/type_matchers.feature
|
168
173
|
- features/message_expectations/README.md
|
169
174
|
- features/message_expectations/any_instance.feature
|
170
175
|
- features/message_expectations/block_local_expectations.feature.pending
|
171
176
|
- features/message_expectations/expect_message.feature
|
177
|
+
- features/message_expectations/receive_counts.feature
|
172
178
|
- features/message_expectations/warn_when_expectation_is_set_on_nil.feature
|
173
179
|
- features/method_stubs/README.md
|
174
180
|
- features/method_stubs/any_instance.feature
|
@@ -182,6 +188,7 @@ test_files:
|
|
182
188
|
- features/step_definitions/additional_cli_steps.rb
|
183
189
|
- features/support/env.rb
|
184
190
|
- spec/rspec/mocks/and_yield_spec.rb
|
191
|
+
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
185
192
|
- spec/rspec/mocks/any_instance_spec.rb
|
186
193
|
- spec/rspec/mocks/any_number_of_times_spec.rb
|
187
194
|
- spec/rspec/mocks/argument_expectation_spec.rb
|