rspec-rails 3.3.0 → 3.3.1

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: 9d716116d6947d7386ac5ea4728f9995b7c3663e
4
- data.tar.gz: 13613ed86a4c02bf0f5e7804ffbcd75dc59c5a07
3
+ metadata.gz: 0cf55bca9875437305b240878a5dfd9f2d968b2b
4
+ data.tar.gz: a4348199880f819042b9f8403be75d4510da5746
5
5
  SHA512:
6
- metadata.gz: 06881e327741bb3268458ab492f432c4843b273be988c886f41a850caffe7b36e540d2d2b93a8c37de992269634fd21cb1fa7406143063c96fa17fd53920c998
7
- data.tar.gz: 7bc993a1f2ae2d252f7018229d289ebf441656a1782f36d0587e35d30f10c7fa5e86648cab89dd85d0ad8d400644dc5e37586bdcc8c2c024759ed6d074e97819
6
+ metadata.gz: 77bb830f15d578dbd1ee2cb66073819d4c35f8207b7381e0f12f2ac4f5bc1afc87463e92d3edb0dd07e4b5051d194abe7e8f18c25e608e8b589b5fbab07d4c5b
7
+ data.tar.gz: df162973cba09bbf1ecfb640237b585ebe8539a05fbbf394e7aa9d88ae19918f142695e4ba91c36d501979f41ca27cfda3e1a1301da7852ea9639e823775f569
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,11 @@
1
+ ### 3.3.1 / 2015-06-14
2
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression that caused stubbing ActiveRecord model classes to
7
+ trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
8
+
1
9
  ### 3.3.0 / 2015-06-12
2
10
  [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
3
11
 
@@ -9,7 +9,11 @@ module RSpec
9
9
  # This allows dynamic columns etc to be used on ActiveRecord models when creating instance_doubles
10
10
  if defined?(ActiveRecord) && defined?(::RSpec::Mocks)
11
11
  ::RSpec::Mocks.configuration.when_declaring_verifying_double do |possible_model|
12
- possible_model.target.define_attribute_methods if possible_model.target.respond_to?(:define_attribute_methods)
12
+ target = possible_model.target
13
+
14
+ if target.respond_to?(:define_attribute_methods) && ActiveRecord::Base != target
15
+ target.define_attribute_methods
16
+ end
13
17
  end
14
18
  end
15
19
  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.0'
6
+ STRING = '3.3.1'
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.0
4
+ version: 3.3.1
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-12 00:00:00.000000000 Z
47
+ date: 2015-06-14 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: activesupport
metadata.gz.sig CHANGED
Binary file