rspec-rails 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cf55bca9875437305b240878a5dfd9f2d968b2b
4
- data.tar.gz: a4348199880f819042b9f8403be75d4510da5746
3
+ metadata.gz: 28ed8e61f3310e28b6e45f6b70fee794ab025a04
4
+ data.tar.gz: e9f840c674e208487386c6bb0f2e5d4197e6b97d
5
5
  SHA512:
6
- metadata.gz: 77bb830f15d578dbd1ee2cb66073819d4c35f8207b7381e0f12f2ac4f5bc1afc87463e92d3edb0dd07e4b5051d194abe7e8f18c25e608e8b589b5fbab07d4c5b
7
- data.tar.gz: df162973cba09bbf1ecfb640237b585ebe8539a05fbbf394e7aa9d88ae19918f142695e4ba91c36d501979f41ca27cfda3e1a1301da7852ea9639e823775f569
6
+ metadata.gz: 6e7af6c8d82820b24ae6841df62e382b3338b0ff771e3738eab6f27c3841a3d5fba47c2da3de4b18cd2d47491a47e44aed0ca77e55b7e874e161971b1e987d00
7
+ data.tar.gz: c042815902f55bc9cb89d36a5cf4ad5c6527b8f3bf579f9c500a9f7d8cd776cc412744ef246a077306b83bebf684096557dbcfc3108f94e39bfab5d9f76bd184
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ ### 3.3.2 / 2015-06-18
2
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression that caused stubbing abstract ActiveRecord model
7
+ classes to trigger internal errors in rails due the the verifying
8
+ double lifecycle wrongly calling `define_attribute_methods` on the
9
+ abstract AR class. (Jon Rowe, #1396)
10
+
1
11
  ### 3.3.1 / 2015-06-14
2
12
  [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
3
13
 
@@ -11,7 +11,7 @@ module RSpec
11
11
  ::RSpec::Mocks.configuration.when_declaring_verifying_double do |possible_model|
12
12
  target = possible_model.target
13
13
 
14
- if target.respond_to?(:define_attribute_methods) && ActiveRecord::Base != target
14
+ if Class === target && ActiveRecord::Base > target && !target.abstract_class?
15
15
  target.define_attribute_methods
16
16
  end
17
17
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.3.1'
6
+ STRING = '3.3.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -44,7 +44,7 @@ cert_chain:
44
44
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
45
45
  F3MdtaDehhjC
46
46
  -----END CERTIFICATE-----
47
- date: 2015-06-14 00:00:00.000000000 Z
47
+ date: 2015-06-18 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: activesupport
metadata.gz.sig CHANGED
Binary file