Sha256: f5b2e2336d7eb1d95509e49bbaf230d34508c3b19cb95f9650566babc56fb811

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

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'
require 'active_support/json'
require 'fileutils'
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))

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.'
    @capture_warnings.after_tests
  end
end

require 'active_model_serializers'

require 'support/stream_capture'

require 'support/rails_app'

require 'support/test_case'

require 'support/serialization_testing'

require 'fixtures/active_record'

require 'fixtures/poro'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cheap_ams-0.10.11 test/test_helper.rb
cheap_ams-0.10.10 test/test_helper.rb
cheap_ams-0.10.8 test/test_helper.rb
cheap_ams-0.10.7 test/test_helper.rb
cheap_ams-0.10.6 test/test_helper.rb