aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-01-29 11:22:32 +0800
committerJosé Valim <jose.valim@gmail.com>2011-01-29 16:51:41 +0800
commita812cb670795cf876d598bc17315b8077eb298ec (patch)
tree26c8a72fd7bccd63d165e46888726d28855ac551 /railties/test
parent34fef7e258a24c389fa211c51dc4217b050b03be (diff)
downloadrails-a812cb670795cf876d598bc17315b8077eb298ec.tar.gz
rails-a812cb670795cf876d598bc17315b8077eb298ec.tar.bz2
rails-a812cb670795cf876d598bc17315b8077eb298ec.zip
Dir.chdir is not useful in this test, that was for another one I am planning to do.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb7
1 files changed, 3 insertions, 4 deletions
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