Skip to content

Update scripts to run compat specs against Rails 6 #235

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

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

pirj
Copy link
Member

@pirj pirj commented Jan 23, 2020

Previously, rspec-rails compat specs were run against Rails 5, and some of them, specifically ActionCable ones, are only present and run for Rails 6.
This change makes sure rspec-core/rspec-mocks/rspec-expectations/rspec-support changes don't break rspec-rails's newer features.

Changes from ruby_23_plus to ruby_25_plus is required since Rails 6 requires Ruby 2.5+ (compared to 2.2.2+ for Rails 5).

rspec/rspec-support#398
rspec/rspec-core#2691
rspec/rspec-expectations#1159
rspec/rspec-mocks#1314
rspec/rspec-rails#2269 - not needed

Related update to use Rails 6 when running specs by default rspec/rspec-rails#2267 (merged)

Proof that it works as expected:
rspec/rspec-expectations#1157
https://travis-ci.org/rspec/rspec-expectations/builds/641000927

@pirj pirj self-assigned this Jan 23, 2020
@pirj pirj requested a review from JonRowe January 23, 2020 19:28
@@ -2,7 +2,7 @@
set -e
source script/functions.sh

if is_ruby_23_plus; then
if is_ruby_25_plus; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to change this.

Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to check for ruby 2.5 for rspec-rails, but I want to leave the 23 check for the bundler stuff

@pirj pirj force-pushed the update-scripts-to-run-rails-6-compat-specs branch from b7b71be to 114ff33 Compare January 23, 2020 19:36
@pirj pirj merged commit 1b756cc into master Jan 23, 2020
@pirj pirj deleted the update-scripts-to-run-rails-6-compat-specs branch January 23, 2020 21:45
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