rspec-mocks 2.99.3 → 2.99.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +7 -0
- data/lib/rspec/mocks/message_expectation.rb +2 -0
- data/lib/rspec/mocks/version.rb +1 -1
- data/spec/rspec/mocks/mock_spec.rb +7 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 471207f568702e87294befee6dcfc4516e1fa21f
|
4
|
+
data.tar.gz: a6049d633e700b93394acdd366bf7b563224d312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2c42ecb51e479ba57358c837a3a7d5befe5e3880ac6ece6b948b7f5a6955f2473b745cb19e4cbe0b2e31d8bd2a8f3b01ce9e9aaa95004d2b861fb780f704f10
|
7
|
+
data.tar.gz: 214851eb67b0ac4a03bf1db3433c1ee94d13130eed03f583f834d32183a15d99313c478c2178c683345e60d24bb2fa54a68abf0387e6c498856b3b309b6fb64e
|
data/Changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 2.99.4 / 2015-06-19
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v2.99.4)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, #970)
|
7
|
+
|
1
8
|
### 2.99.3 / 2015-01-09
|
2
9
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
|
3
10
|
|
@@ -358,6 +358,8 @@ module RSpec
|
|
358
358
|
else
|
359
359
|
self.inner_implementation_action = block
|
360
360
|
end
|
361
|
+
elsif args.empty?
|
362
|
+
RSpec.deprecate "Using `with` without arguments", :replacement => "`with(no_args)`"
|
361
363
|
end
|
362
364
|
|
363
365
|
@argument_list_matcher = ArgumentListMatcher.new(*args, &block)
|
data/lib/rspec/mocks/version.rb
CHANGED
@@ -776,6 +776,13 @@ module RSpec
|
|
776
776
|
@double.should_receive(:foo).with('bar')
|
777
777
|
@double.foo('bar')
|
778
778
|
end
|
779
|
+
|
780
|
+
it 'includes callsite in deprecation when called without arguments' do
|
781
|
+
obj = Object.new
|
782
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /Using `with` without arguments/)
|
783
|
+
obj.stub(:foo).with().and_return('bar')
|
784
|
+
expect(obj.foo).to eq('bar')
|
785
|
+
end
|
779
786
|
end
|
780
787
|
|
781
788
|
context "with non-matching args" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.99.
|
4
|
+
version: 2.99.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -43,16 +43,16 @@ dependencies:
|
|
43
43
|
name: aruba
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 0.6.1
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.6.1
|
56
56
|
description: RSpec's 'test double' framework, with support for stubbing and mocking
|
57
57
|
email: rspec-users@rubyforge.org
|
58
58
|
executables: []
|
@@ -221,7 +221,7 @@ rubyforge_project: rspec
|
|
221
221
|
rubygems_version: 2.2.2
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
|
-
summary: rspec-mocks-2.99.
|
224
|
+
summary: rspec-mocks-2.99.4
|
225
225
|
test_files:
|
226
226
|
- features/README.md
|
227
227
|
- features/Scope.md
|