diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-13 01:03:01 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-13 01:06:27 +0200 |
commit | b0062eef347199639db4eece358e7e72792a3f28 (patch) | |
tree | a450a4f92018c6302ecf4dc1bcd6579611d631ea /railties/test | |
parent | 2561a1f546b304032b6d2702c59bdf5492990ba6 (diff) | |
download | rails-b0062eef347199639db4eece358e7e72792a3f28.tar.gz rails-b0062eef347199639db4eece358e7e72792a3f28.tar.bz2 rails-b0062eef347199639db4eece358e7e72792a3f28.zip |
silences stderr to prevent an expected error message in the test suite from being echoed
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index cc0bd53639..5175a6e2e6 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -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 |