rspec-rails 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +13 -0
- data/lib/rspec/rails/fixture_support.rb +8 -2
- data/lib/rspec/rails/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b530810e523033d7513c99d9c37e6d6489803fa6d5cc3f2f734f453f4f1820e7
|
4
|
+
data.tar.gz: ba735aede717f9b8474f74a35bfa9377192ecbe234dbb215ece3f0a41583db3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29d53a4939bb2c0f18a80eac33e18fa9d7e905497f2735a30800c2be5bf0b0499f0b84be8ffbec93e6793ed8dcb14fe648017aecd36e52439d5f4a6f0e8c3450
|
7
|
+
data.tar.gz: c3d15b2bf8a9c5182aef5760027142898394ec83d75a210dce65f78f4dd5496cdb7451f2b30908a06942c9e897a1b7ba96254e00f59eefab3f151a805e8cda36
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,4 +1,17 @@
|
|
1
|
+
### 4.1.2 / 2021-03-10
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.1...v4.1.2)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Prevent `NoMethodError` on Rails 4.2 when checking if a test is run
|
7
|
+
in transaction. (Geremia Taglialatela, #2480)
|
8
|
+
|
9
|
+
*Note* Rails 4.2 is only soft supported by the 4.x series of rspec-rails,
|
10
|
+
an exception was made here as it was a regression introduced by another
|
11
|
+
bug fix.
|
12
|
+
|
1
13
|
### 4.1.1 / 2021-03-09
|
14
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.0...v4.1.1)
|
2
15
|
|
3
16
|
Bug Fixes:
|
4
17
|
|
@@ -12,8 +12,14 @@ module RSpec
|
|
12
12
|
# @private prevent ActiveSupport::TestFixtures to start a DB transaction.
|
13
13
|
# Monkey patched to avoid collisions with 'let(:name)' in Rails 6.1 and after
|
14
14
|
# and let(:method_name) before Rails 6.1.
|
15
|
-
|
16
|
-
|
15
|
+
if ::Rails::VERSION::STRING > '5'
|
16
|
+
def run_in_transaction?
|
17
|
+
use_transactional_tests && !self.class.uses_transaction?(self)
|
18
|
+
end
|
19
|
+
else
|
20
|
+
def run_in_transaction?
|
21
|
+
use_transactional_fixtures && !self.class.uses_transaction?(self)
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
included do
|
data/lib/rspec/rails/version.rb
CHANGED
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: 4.1.
|
4
|
+
version: 4.1.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: 2021-03-
|
47
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: actionpack
|
@@ -296,7 +296,7 @@ licenses:
|
|
296
296
|
- MIT
|
297
297
|
metadata:
|
298
298
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
299
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.1.
|
299
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.1.2/Changelog.md
|
300
300
|
documentation_uri: https://rspec.info/documentation/
|
301
301
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
302
302
|
source_code_uri: https://github.com/rspec/rspec-rails
|
metadata.gz.sig
CHANGED
Binary file
|