mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Dir.chdir is not useful in this test, that was for another one I am planning to do.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user