Sha256: cad3630b248bd16d402c7eb3910af9d13d20f183e0df9054c3d688686c4e0247
Contents?: true
Size: 967 Bytes
Versions: 6
Compression:
Stored size: 967 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" 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" # Filter out Minitest backtrace while allowing backtrace from other libraries # to be shown. Minitest.backtrace_filter = Minitest::BacktraceFilter.new # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) end ActiveRecordProfiler::Collector.app_path_pattern = Regexp.new(Regexp.quote("/test/")) # The test code is in test/, but app is in test/dummy, so we have to configure # the correct trim_root_path. ActiveRecordProfiler::Collector.trim_root_path = "#{Rails.root.parent.expand_path}/"
Version data entries
6 entries across 6 versions & 1 rubygems