diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-16 18:46:55 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-16 18:46:55 -0400 |
commit | 5e62e771bf14f58dd1622d2e3631309caa201349 (patch) | |
tree | 76143baae833a4cfe0e05cefb18b5a31d15b74e9 /test/test_helper.rb | |
download | pokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.tar.gz pokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.tar.bz2 pokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.zip |
Initial commit
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ | |||
1 | require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) | ||
2 | ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] | ||
3 | ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__) | ||
4 | require "rails/test_help" | ||
5 | |||
6 | # Filter out Minitest backtrace while allowing backtrace from other libraries | ||
7 | # to be shown. | ||
8 | Minitest.backtrace_filter = Minitest::BacktraceFilter.new | ||
9 | |||
10 | |||
11 | # Load fixtures from the engine | ||
12 | if ActiveSupport::TestCase.respond_to?(:fixture_path=) | ||
13 | ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) | ||
14 | ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path | ||
15 | ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files" | ||
16 | ActiveSupport::TestCase.fixtures :all | ||
17 | end | ||