From 5e62e771bf14f58dd1622d2e3631309caa201349 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Sep 2017 18:46:55 -0400 Subject: Initial commit --- test/test_helper.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_helper.rb (limited to 'test/test_helper.rb') diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..cfcfffe --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,17 @@ +require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) +ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] +ActiveRecord::Migrator.migrations_paths << File.expand_path('../../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 fixtures from the engine +if ActiveSupport::TestCase.respond_to?(:fixture_path=) + ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) + ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path + ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files" + ActiveSupport::TestCase.fixtures :all +end -- cgit 1.4.1