File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11
11
env :
12
12
RSPEC_CI : true
13
13
# This tells rspec-rails what branch to run in ci
14
- RSPEC_VERSION : ' = 3.11 .0.pre'
14
+ RSPEC_VERSION : ' = 3.12 .0.pre'
15
15
jobs :
16
16
rubocop :
17
17
name : Rubocop
Original file line number Diff line number Diff line change @@ -189,6 +189,9 @@ function run_all_spec_suites {
189
189
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
190
190
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
191
191
if rspec_rails_compatible; then
192
+ if ! is_ruby_27_plus; then
193
+ export RAILS_VERSION=' ~> 6.1.0'
194
+ fi
192
195
fold " rspec-rails specs" run_spec_suite_for " rspec-rails"
193
196
fi
194
197
Original file line number Diff line number Diff line change @@ -92,6 +92,14 @@ function is_ruby_25_plus {
92
92
fi
93
93
}
94
94
95
+ function is_ruby_27_plus {
96
+ if ruby -e " exit(RUBY_VERSION.to_f >= 2.7)" ; then
97
+ return 0
98
+ else
99
+ return 1
100
+ fi
101
+ }
102
+
95
103
function is_ruby_31_plus {
96
104
if ruby -e " exit(RUBY_VERSION.to_f >= 3.1)" ; then
97
105
return 0
You can’t perform that action at this time.
0 commit comments