Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

--no-rc in the railties tests

so that the tester's local .railsrc file does not affect the test results
  • Loading branch information...
commit 517cfbe11094582299ed4e185d6c3a4b7a3282ea 1 parent b40bd16
@amatsuda amatsuda authored
View
2  railties/test/generators/app_generator_test.rb
@@ -70,7 +70,7 @@ def test_invalid_application_name_is_fixed
end
def test_application_new_exits_with_non_zero_code_on_invalid_application_name
- quietly { system 'rails new test' }
+ quietly { system 'rails new test --no-rc' }
assert_equal false, $?.success?
end
View
2  railties/test/isolation/abstract_unit.rb
@@ -279,7 +279,7 @@ class ActiveSupport::TestCase
environment = File.expand_path('../../../../load_paths', __FILE__)
require_environment = "-r #{environment}"
- `#{Gem.ruby} #{require_environment} #{RAILS_FRAMEWORK_ROOT}/railties/bin/rails new #{app_template_path} --skip-gemfile`
+ `#{Gem.ruby} #{require_environment} #{RAILS_FRAMEWORK_ROOT}/railties/bin/rails new #{app_template_path} --skip-gemfile --no-rc`
File.open("#{app_template_path}/config/boot.rb", 'w') do |f|
f.puts "require '#{environment}'"
f.puts "require 'rails/all'"

3 comments on commit 517cfbe

@guilleiguaran

@amatsuda, thanks!!!

I'm pretty sure @rafaelfranca will :heart: this

Please sign in to comment.
Something went wrong with that request. Please try again.