Skip to content
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

Remove test_order method check in test/helper.rb #150

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

liijunwei
Copy link
Contributor

@liijunwei liijunwei commented Nov 1, 2022

  • currently globalid is depending on 'activesupport >= 5.0', which makes the ActiveSupport::TestCase.respond_to?(:test_order=) check redundant
  • in 'activesupport > 4.1.16, < 5.0' , ActiveSupport::TestCase.test_order default to :sorted, but in 'activesupport >= 5.0', its default is :random, so these thress lines of code can be removed

ref:

* currently globalid is depending on 'activesupport >= 5.0', which makes the `ActiveSupport::TestCase.respond_to?(:test_order=)` check redundant
* in `activesupport > 4.1.16, < 5.0` , `ActiveSupport::TestCase.test_order` default to `:sorted`, but in 'activesupport >= 5.0', its default is `:random`, so these thress lines of code can be removed
@dhh dhh merged commit eea5a65 into rails:main Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants