File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ namespace :generate do
63
63
# Rails 4+ cannot use a `rails` binstub generated by Bundler
64
64
sh "rm -f #{ bindir } /rails"
65
65
sh "bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-bootsnap --skip-sprockets " \
66
- "--skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
66
+ "--skip-git --skip-test-unit --skip-listen --skip-bundle --skip-spring " \
67
+ "--template=example_app_generator/generate_app.rb"
67
68
68
69
in_example_app do
69
70
sh "./travis_retry_bundle_install.sh 2>&1"
@@ -189,7 +190,8 @@ namespace :no_active_record do
189
190
# Rails 4+ cannot use a `rails` binstub generated by Bundler
190
191
sh "rm -f #{ bindir } /rails"
191
192
sh "bundle exec rails new #{ example_app_dir } --no-rc --skip-active-record --skip-javascript --skip-bootsnap " \
192
- "--skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
193
+ "--skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --skip-spring " \
194
+ "--template=example_app_generator/generate_app.rb"
193
195
194
196
in_example_app ( app_dir : example_app_dir ) do
195
197
sh "./travis_retry_bundle_install.sh 2>&1"
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ if is_ruby_23_plus; then
10
10
gem install --no-document bundler
11
11
else
12
12
echo " Warning installing older versions of Rubygems / Bundler"
13
- gem update --system ' 2.7.8 '
13
+ gem update --system ' 2.7.10 '
14
14
gem install bundler -v ' 1.17.3'
15
15
fi
Original file line number Diff line number Diff line change @@ -247,15 +247,18 @@ def _view; end # Stub method
247
247
pending_only_on_ruby_22_rails_52 = false
248
248
end
249
249
250
- it 'is accessible to hooks' , pending : pending_only_on_ruby_22_rails_52 do
250
+ # Regression test from rspec/rspec-rails#833
251
+ it 'is accessible to configuration-level hooks' , pending : pending_only_on_ruby_22_rails_52 do
251
252
with_isolated_config do
252
253
run_count = 0
253
254
RSpec . configuration . before ( :each , type : :view ) do
255
+ # `view` is provided from the view example type, and serves to
256
+ # demonstrate this hook is run in the correct context.
254
257
allow ( view ) . to receive ( :render ) { :value }
255
258
run_count += 1
256
259
end
257
260
group = RSpec ::Core ::ExampleGroup . describe 'a view' , type : :view do
258
- specify { expect ( true ) . to eq true }
261
+ specify { expect ( view . render ) . to eq ( :value ) }
259
262
end
260
263
group . run ( failure_reporter )
261
264
expect ( failure_reporter . exceptions ) . to eq [ ]
You can’t perform that action at this time.
0 commit comments