From a812cb670795cf876d598bc17315b8077eb298ec Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 29 Jan 2011 11:22:32 +0800 Subject: Dir.chdir is not useful in this test, that was for another one I am planning to do. --- railties/test/generators/app_generator_test.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'railties/test/generators') diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 919823070b..f04b14f0ca 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -64,10 +64,9 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_file "things-43/config/application.rb", /^module Things43$/ end - def test_application_new_exits_with_non_zero_code_on_failure - Dir.chdir(destination_root) do - `rails new test` - end + def test_application_new_exits_with_non_zero_code_on_invalid_application_name + # TODO: Suppress the output of this (it's because of a Thor::Error) + `rails new test` assert_equal false, $?.success? end -- cgit v1.2.3