@@ -65,7 +65,7 @@ namespace :generate do
65
65
in_example_app do
66
66
sh "./travis_retry_bundle_install.sh 2>&1"
67
67
# Rails 4 cannot use a `rails` binstub generated by Bundler
68
- sh "bundle binstubs rspec-core rake --force"
68
+ sh "bundle binstubs bundler rspec-core rake --force"
69
69
sh "bundle binstubs railties" unless File . exist? ( "bin/rails" )
70
70
71
71
application_file = File . read ( "config/application.rb" )
@@ -94,6 +94,7 @@ def in_example_app(*command_opts)
94
94
end
95
95
Dir . chdir ( app_dir ) do
96
96
Bundler . with_original_env do
97
+ ENV [ "BUNDLE_GEMFILE" ] = "Gemfile"
97
98
sh *command_opts unless command_opts . empty?
98
99
yield if block_given?
99
100
end
@@ -182,12 +183,12 @@ namespace :no_active_record do
182
183
183
184
# Rails 4 cannot use a `rails` binstub generated by Bundler
184
185
sh "rm -f #{ bindir } /rails"
185
- sh "bundle exec rails new #{ example_app_dir } --skip-active-record --skip-javascript --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
186
+ sh "bundle exec rails new #{ example_app_dir } --no-rc -- skip-active-record --skip-javascript --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
186
187
187
188
in_example_app ( :app_dir => example_app_dir ) do
188
189
sh "./travis_retry_bundle_install.sh 2>&1"
189
190
# Rails 4 cannot use a `rails` binstub generated by Bundler
190
- sh "bundle binstubs rspec-core rake --force"
191
+ sh "bundle binstubs bundler rspec-core rake --force"
191
192
sh "bundle binstubs railties" unless File . exist? ( "bin/rails" )
192
193
193
194
application_file = File . read ( "config/application.rb" )
0 commit comments