rspec-mocks 2.99.2 → 2.99.3

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: d1af49965a5c6d2286b6fda243d7b3a509da5fcd
4
- data.tar.gz: d17b57235eee4d62ee17c5152f1398f68e0a6890
3
+ metadata.gz: ccf47eab1cbb0a897c8303238d1620d3a3694b4c
4
+ data.tar.gz: fa71db863a6886efb9c1b02b62bb992e3e223511
5
5
  SHA512:
6
- metadata.gz: dfb8b04b091d883bd624058e475d9efeb92d528bec14069699a4af5916305f9d04d970a58d13bf1d6be342470ef84f92f81b0f47980abb7d035d78990a383f1f
7
- data.tar.gz: f7ba1ce85e44a85ad5543f750bf1ab5df3b14665868f01dbfc41c7037da944d1c8e30a01ad01efc4711275d2010152c78bc72f7da4001a4814a6194201683373
6
+ metadata.gz: 50a1037386e04fd120c2ed3c8d80b9969dcfc3f1f1eb46a897e6a19f5bada55c2275d216bf7600582960b2d0e46312eaacc9ceabef371f5febd099146bbd6120
7
+ data.tar.gz: 4990f6c62d8f8919d293f3ca88dae572e95471f773f570b7f5d3f9b0480ffaa068737709b902879acc5519d7df216e1fa059f58ce4d301429e9282c7a7f0bc9e
@@ -1,3 +1,10 @@
1
+ ### 2.99.3 / 2015-01-09
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
7
+
1
8
  ### 2.99.2 / 2014-07-21
2
9
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
3
10
 
@@ -140,7 +140,7 @@ module RSpec
140
140
  end
141
141
 
142
142
  def __warn_of_expired_use_if_expired
143
- if @__unfrozen_attributes[:expired]
143
+ if @__unfrozen_attributes && @__unfrozen_attributes[:expired]
144
144
  RSpec.deprecate "Continuing to use a test double after it has been reset (e.g. in a subsequent example)"
145
145
  end
146
146
  end
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Mocks
3
3
  module Version
4
- STRING = '2.99.2'
4
+ STRING = '2.99.3'
5
5
  end
6
6
  end
7
7
  end
@@ -88,4 +88,12 @@ describe "double" do
88
88
  end
89
89
  end
90
90
  end
91
+
92
+ context 'when being deserialized from YAML' do
93
+ let(:yaml) { YAML.dump(double) }
94
+
95
+ it 'does not raise error' do
96
+ expect { YAML.load(yaml) }.not_to raise_error
97
+ end
98
+ end
91
99
  end
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.2
4
+ version: 2.99.3
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: 2014-07-21 00:00:00.000000000 Z
12
+ date: 2015-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -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.2
224
+ summary: rspec-mocks-2.99.3
225
225
  test_files:
226
226
  - features/README.md
227
227
  - features/Scope.md