diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-13 01:41:52 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-13 01:41:52 +0200 |
commit | bdbb15e5a5c647823aa6b9fd04020dab16360ae1 (patch) | |
tree | 1002c18700ef0e29104864a2f961934322b09658 /railties/test/generators | |
parent | b0062eef347199639db4eece358e7e72792a3f28 (diff) | |
download | rails-bdbb15e5a5c647823aa6b9fd04020dab16360ae1.tar.gz rails-bdbb15e5a5c647823aa6b9fd04020dab16360ae1.tar.bz2 rails-bdbb15e5a5c647823aa6b9fd04020dab16360ae1.zip |
new reporting method Kernel#quietly
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 5175a6e2e6..8de829b6dd 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -66,7 +66,7 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_application_new_exits_with_non_zero_code_on_invalid_application_name - silence_stderr { `rails new test` } + quietly { system 'rails new test' } assert_equal false, $?.success? end diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 673856c34d..2af728e766 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -122,14 +122,14 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase def test_ensure_that_tests_work run_generator FileUtils.cd destination_root - `bundle install` # use backticks to silence stdout + quietly { system 'bundle install' } assert_match(/1 tests, 1 assertions, 0 failures, 0 errors/, `bundle exec rake test`) end def test_ensure_that_tests_works_in_full_mode run_generator [destination_root, "--full", "--skip_active_record"] FileUtils.cd destination_root - `bundle install` # use backticks to silence stdout + quietly { system 'bundle install' } assert_match(/1 tests, 1 assertions, 0 failures, 0 errors/, `bundle exec rake test`) end |