Skip to content

Commit c8eb5a3

Browse files
committed
Pick a version of rails that can be installed on the ruby version.
1 parent 619731d commit c8eb5a3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

travis/script/clone_all_rspec_repos

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -e -x
33
source script/functions.sh
44

55
if is_mri; then
6+
set_rails_version_for_rspec_rails
7+
68
pushd ..
79

810
clone_repo "rspec"

travis/script/functions.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ function is_mri_192 {
4949
fi
5050
}
5151

52+
function set_rails_version_for_rspec_rails {
53+
if ruby -e "exit(RUBY_VERSION < '1.9.3')"; then
54+
export RAILS_VERSION=3.2.17
55+
fi
56+
}
57+
5258
function rspec_support_compatible {
5359
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
5460
return 0

0 commit comments

Comments
 (0)