Skip to content

Commit 1b756cc

Browse files
authored
Merge pull request #235 from rspec/update-scripts-to-run-rails-6-compat-specs
Update scripts to run compat specs against Rails 6
2 parents 1ae84fa + 114ff33 commit 1b756cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

travis/script/predicate_functions.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ function is_ruby_23_plus {
6262
fi
6363
}
6464

65+
function is_ruby_25_plus {
66+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.5)"; then
67+
return 0
68+
else
69+
return 1
70+
fi
71+
}
72+
6573
function is_mri_27 {
6674
if is_mri; then
6775
if ruby -e "exit(RUBY_VERSION.to_f == 2.7)"; then
@@ -75,7 +83,7 @@ function is_mri_27 {
7583
}
7684

7785
function rspec_rails_compatible {
78-
if is_ruby_23_plus; then
86+
if is_ruby_25_plus; then
7987
return 0
8088
else
8189
return 1

0 commit comments

Comments
 (0)