Skip to content

Commit

Permalink
--no-rc in the railties tests
Browse files Browse the repository at this point in the history
so that the tester's local .railsrc file does not affect the test results
  • Loading branch information
amatsuda committed Feb 1, 2013
1 parent b40bd16 commit 517cfbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railties/test/generators/app_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion railties/test/isolation/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 517cfbe

Please sign in to comment.