Skip to content
Browse files

Dir.chdir is not useful in this test, that was for another one I am p…

…lanning to do.
  • Loading branch information...
1 parent 34fef7e commit a812cb670795cf876d598bc17315b8077eb298ec @parndt parndt committed with josevalim Jan 29, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 railties/test/generators/app_generator_test.rb
7 railties/test/generators/app_generator_test.rb
@@ -64,10 +64,9 @@ def test_invalid_application_name_is_fixed
assert_file "things-43/config/application.rb", /^module Things43$/
- 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?

0 comments on commit a812cb6

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