test/test_helper.rb in cheap_ams-0.10.5 vs test/test_helper.rb in cheap_ams-0.10.6

- old
+ new

@@ -1,7 +1,18 @@ require 'bundler/setup' +begin + require 'simplecov' + # HACK: till https://github.com/colszowka/simplecov/pull/400 is merged and released. + # Otherwise you may get: + # simplecov-0.10.0/lib/simplecov/defaults.rb:50: warning: global variable `$ERROR_INFO' not initialized + require 'support/simplecov' + AppCoverage.start +rescue LoadError + STDERR.puts 'Running without SimpleCov' +end + require 'timecop' require 'rails' require 'action_controller' require 'action_controller/test_case' require 'action_controller/railtie' @@ -11,21 +22,20 @@ require 'minitest/autorun' # Ensure backward compatibility with Minitest 4 Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) - require 'capture_warnings' @capture_warnings = CaptureWarnings.new(fail_build = true) @capture_warnings.before_tests if Minitest.respond_to?(:after_run) Minitest.after_run do @capture_warnings.after_tests end else at_exit do - STDOUT.puts "Minitest.after_run not available." + STDOUT.puts 'Minitest.after_run not available.' @capture_warnings.after_tests end end require 'active_model_serializers' @@ -33,9 +43,11 @@ require 'support/stream_capture' require 'support/rails_app' require 'support/test_case' + +require 'support/serialization_testing' require 'fixtures/active_record' require 'fixtures/poro'