Permalink
Browse files

silences stderr to prevent an expected error message in the test suit…

…e from being echoed
  • Loading branch information...
1 parent 2561a1f commit b0062eef347199639db4eece358e7e72792a3f28 @fxn fxn committed May 12, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/test/generators/app_generator_test.rb
@@ -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

0 comments on commit b0062ee

Please sign in to comment.