提交 fc32d02b 编写于 作者: R Rafael Mendonça França

Merge pull request #17867 from tgxworld/silence_minitest_plugins

Silence Minitest for plugin tests.
......@@ -10,7 +10,9 @@
<% end -%>
require "rails/test_help"
Rails.backtrace_cleaner.remove_silencers!
# Filter out Minitest backtrace while allowing backtrace from other libraries
# to be shown.
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
......
......@@ -57,6 +57,7 @@ def test_generating_without_options
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册