1
0
Fork 0
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:
Xavier Noria 2011-05-13 01:03:01 +02:00
parent 2561a1f546
commit b0062eef34

View file

@ -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