@@ -12,8 +12,8 @@ SPECS_HAVE_RUN_FILE=specs.out
12
12
MAINTENANCE_BRANCH=` cat maintenance-branch`
13
13
14
14
# Don't allow rubygems to pollute what's loaded. Also, things boot faster
15
- # without the extra load time of rubygems. Only works on MRI Ruby 1.9+
16
- if is_mri_192_plus ; then
15
+ # without the extra load time of rubygems. Only works on MRI.
16
+ if is_mri ; then
17
17
export RUBYOPT=" --disable=gem"
18
18
fi
19
19
@@ -98,6 +98,17 @@ function run_spec_suite_for {
98
98
fi ;
99
99
}
100
100
101
+ function run_spec_suite_for_rspec_rails {
102
+ echo " Running specs for rspec-rails"
103
+ pushd ../$1
104
+ unset BUNDLE_GEMFILE
105
+ unset RUBYOPT
106
+ bundle_install_flags=" --binstubs --standalone --without documentation --path ../bundle"
107
+ travis_retry eval " (unset RUBYOPT; exec bundle install $bundle_install_flags )"
108
+ run_specs_and_record_done
109
+ popd
110
+ }
111
+
101
112
function check_binstubs {
102
113
echo " Checking required binstubs"
103
114
@@ -188,11 +199,8 @@ function run_all_spec_suites {
188
199
fold " rspec-core specs" run_spec_suite_for " rspec-core"
189
200
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
190
201
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
202
+ fold " rspec-support specs" run_spec_suite_for " rspec-support"
191
203
if rspec_rails_compatible; then
192
- fold " rspec-rails specs" run_spec_suite_for " rspec-rails"
193
- fi
194
-
195
- if rspec_support_compatible; then
196
- fold " rspec-support specs" run_spec_suite_for " rspec-support"
204
+ fold " rspec-rails specs" run_spec_suite_for_rspec_rails
197
205
fi
198
206
}
0 commit comments