mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Capture and print app warnings on test run
Configure not to fail the test, for now
This commit is contained in:
@@ -11,6 +11,12 @@ require 'fileutils'
|
||||
# Ensure backward compatibility with Minitest 4
|
||||
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
|
||||
|
||||
require "capture_warnings"
|
||||
@capture_warnings = CaptureWarnings.new(fail_build = false)
|
||||
@capture_warnings.before_tests
|
||||
at_exit do
|
||||
@capture_warnings.after_tests
|
||||
end
|
||||
require 'active_model_serializers'
|
||||
|
||||
class Foo < Rails::Application
|
||||
|
||||
Reference in New Issue
Block a user