@@ -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,18 @@ function run_spec_suite_for {
98
98
fi ;
99
99
}
100
100
101
+ function run_spec_suite_for_rspec_rails {
102
+ (
103
+ echo " Running specs for rspec-rails"
104
+ cd ../$1
105
+ unset BUNDLE_GEMFILE
106
+ unset RUBYOPT
107
+ bundle_install_flags=" --binstubs --standalone --without documentation --path ../bundle"
108
+ travis_retry eval " (unset RUBYOPT; exec bundle install $bundle_install_flags )"
109
+ run_specs_and_record_done
110
+ )
111
+ }
112
+
101
113
function check_binstubs {
102
114
echo " Checking required binstubs"
103
115
@@ -188,11 +200,8 @@ function run_all_spec_suites {
188
200
fold " rspec-core specs" run_spec_suite_for " rspec-core"
189
201
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
190
202
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
203
+ fold " rspec-support specs" run_spec_suite_for " rspec-support"
191
204
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"
205
+ fold " rspec-rails specs" run_spec_suite_for_rspec_rails
197
206
fi
198
207
}
0 commit comments