Skip to content

Commit

Permalink
silences stderr to prevent an expected error message in the test suit…
Browse files Browse the repository at this point in the history
…e from being echoed
  • Loading branch information
fxn committed May 12, 2011
1 parent 2561a1f commit b0062ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -66,8 +66,7 @@ def test_invalid_application_name_is_fixed
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

Expand Down

0 comments on commit b0062ee

Please sign in to comment.