rspec-mocks 2.99.3 → 2.99.4

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: ccf47eab1cbb0a897c8303238d1620d3a3694b4c
4
- data.tar.gz: fa71db863a6886efb9c1b02b62bb992e3e223511
3
+ metadata.gz: 471207f568702e87294befee6dcfc4516e1fa21f
4
+ data.tar.gz: a6049d633e700b93394acdd366bf7b563224d312
5
5
  SHA512:
6
- metadata.gz: 50a1037386e04fd120c2ed3c8d80b9969dcfc3f1f1eb46a897e6a19f5bada55c2275d216bf7600582960b2d0e46312eaacc9ceabef371f5febd099146bbd6120
7
- data.tar.gz: 4990f6c62d8f8919d293f3ca88dae572e95471f773f570b7f5d3f9b0480ffaa068737709b902879acc5519d7df216e1fa059f58ce4d301429e9282c7a7f0bc9e
6
+ metadata.gz: a2c42ecb51e479ba57358c837a3a7d5befe5e3880ac6ece6b948b7f5a6955f2473b745cb19e4cbe0b2e31d8bd2a8f3b01ce9e9aaa95004d2b861fb780f704f10
7
+ data.tar.gz: 214851eb67b0ac4a03bf1db3433c1ee94d13130eed03f583f834d32183a15d99313c478c2178c683345e60d24bb2fa54a68abf0387e6c498856b3b309b6fb64e
@@ -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)
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Mocks
3
3
  module Version
4
- STRING = '2.99.3'
4
+ STRING = '2.99.4'
5
5
  end
6
6
  end
7
7
  end
@@ -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.3
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-01-10 00:00:00.000000000 Z
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: '0.5'
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: '0.5'
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.3
224
+ summary: rspec-mocks-2.99.4
225
225
  test_files:
226
226
  - features/README.md
227
227
  - features/Scope.md