Skip to content

Commit cf7cd10

Browse files
committed
Add --no-rc flag for more reliable local testing
The rspec-rails acceptance tests use `rails new` to generate a sample app for running tests. If a developer running the rspec-rails test suite has a `.railsrc` file, this will affect the app that is generated, causing specs to fail. This commit fixes this by passing the `--no-rc` flag so that `rails new` ignores the developer's local `.railsrc`.
1 parent 6f31642 commit cf7cd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace :generate do
6060

6161
# Rails 4 cannot use a `rails` binstub generated by Bundler
6262
sh "rm -f #{bindir}/rails"
63-
sh "bundle exec rails new ./tmp/example_app --skip-javascript --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
63+
sh "bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
6464

6565
in_example_app do
6666
sh "./travis_retry_bundle_install.sh 2>&1"
@@ -183,7 +183,7 @@ namespace :no_active_record do
183183

184184
# Rails 4 cannot use a `rails` binstub generated by Bundler
185185
sh "rm -f #{bindir}/rails"
186-
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"
187187

188188
in_example_app(:app_dir => example_app_dir) do
189189
sh "./travis_retry_bundle_install.sh 2>&1"

0 commit comments

Comments
 (0)