Sha256: 81d1c0a7eed1d573ce2ef65d2492cd4aad4db5416838b8ce0f6e3db31fa3d1c6
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) # require File.expand_path("../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 #reporter_options = { color: true } Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new] class ActiveSupport::TestCase ActiveRecord::Base.send(:include, PolyBelongsTo::Dup) CleanAttrs = PolyBelongsTo::Pbt::AttrSanitizer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
poly_belongs_to-0.1.4 | test/test_helper.rb |