Sha256: 534e3dc3d30d6001ca9f68e058e886a67b7f0debe8254af41ced615de85e2300

Contents?: true

Size: 944 Bytes

Versions: 4

Compression:

Stored size: 944 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
require File.expand_path("../../test/dummy/config/environment.rb",  __FILE__)

ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
require 'rails/test_help'
require 'minitest/rails'
require 'minitest/reporters'
require 'securerandom'

unless Rails.version =~ /^4.[2-9]/
  Rails.backtrace_cleaner.remove_silencers!
end
Minitest.backtrace_filter = Minitest::BacktraceFilter.new

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
end

Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new]

class ActiveSupport::TestCase
  ActiveRecord::Base.send(:include, PolyBelongsTo::Dup)
  CleanAttrs = PolyBelongsTo::Pbt::AttrSanitizer  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
poly_belongs_to-0.1.8 test/test_helper.rb
poly_belongs_to-0.1.7 test/test_helper.rb
poly_belongs_to-0.1.6 test/test_helper.rb
poly_belongs_to-0.1.5 test/test_helper.rb