mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
silences stderr to prevent an expected error message in the test suite from being echoed
This commit is contained in:
parent
2561a1f546
commit
b0062eef34
1 changed files with 1 additions and 2 deletions
|
@ -66,8 +66,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
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`
|
||||
silence_stderr { `rails new test` }
|
||||
assert_equal false, $?.success?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue