-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix support for Rails 4.2 #2480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix support for Rails 4.2 #2480
Conversation
Rails 4.2 does not have `use_transactional_tests` defined Fix rspec#2477
| # and let(:method_name) before Rails 6.1. | ||
| def run_in_transaction? | ||
| use_transactional_tests && !self.class.uses_transaction?(self) | ||
| if ::Rails::VERSION::STRING > '5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is inspired by
| if ::Rails::VERSION::STRING > '5' |
pirj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
Please add a Changelog record.
|
Is the failure |
|
Might be just flaky. Let's see if it reappears after Changelog changes. |
|
Thank you! |
|
Thanks, this will be released later today as 4.1.2. (Please note future travellers, this does not mean we are supporting Rails 4.2 on this series of RSpec, this was an exception to the rule 😃 ) |
Rails 4.2 does not have
use_transactional_testsdefinedFix #2477
Supersedes #2479 (I was using a wrong branch)