diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-12-02 01:31:06 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-12-02 18:47:03 +0800 |
commit | 106db0b419ede5bea7b93a9eb76ce6aa578b99b2 (patch) | |
tree | 04c996bc8d4bed5b99080ccfec2e43e024a34512 /railties/test/generators | |
parent | 72f4c7af10b7fed88604f73f13d5e66046d38fbd (diff) | |
download | rails-106db0b419ede5bea7b93a9eb76ce6aa578b99b2.tar.gz rails-106db0b419ede5bea7b93a9eb76ce6aa578b99b2.tar.bz2 rails-106db0b419ede5bea7b93a9eb76ce6aa578b99b2.zip |
Silence Minitest for plugin tests.
Fixes https://github.com/rails/rails/issues/17340.
Use Minitest::BacktraceFilter instead of removing all silencers. This
will allow the backtrace for all libraries in the plugin to be shown
while removing noise generated by Minitest's backtrace.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_generator_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 4329c6e1a4..dbc87be614 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -57,6 +57,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase assert_file "test/test_helper.rb" do |content| assert_match(/require.+test\/dummy\/config\/environment/, content) assert_match(/ActiveRecord::Migrator\.migrations_paths.+test\/dummy\/db\/migrate/, content) + assert_match(/Minitest\.backtrace_filter = Minitest::BacktraceFilter\.new/, content) end assert_file "test/bukkits_test.rb", /assert_kind_of Module, Bukkits/ end |