diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-27 23:51:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-27 23:51:23 -0400 |
commit | d09db2d6d0727faba8e5078900f2fbd1e18ea49f (patch) | |
tree | 978edaa0c321477d3c04f515cd13da0051a5459f /test/test_helper.rb | |
parent | 75a7c7131f6c9a6d80d16055130609eb97f37dfd (diff) | |
download | wittle-d09db2d6d0727faba8e5078900f2fbd1e18ea49f.tar.gz wittle-d09db2d6d0727faba8e5078900f2fbd1e18ea49f.tar.bz2 wittle-d09db2d6d0727faba8e5078900f2fbd1e18ea49f.zip |
it's an engine now!
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..9d47a1b --- /dev/null +++ b/test/test_helper.rb | |||
@@ -0,0 +1,15 @@ | |||
1 | # Configure Rails Environment | ||
2 | ENV["RAILS_ENV"] = "test" | ||
3 | |||
4 | require_relative "../test/dummy/config/environment" | ||
5 | ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)] | ||
6 | ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__) | ||
7 | require "rails/test_help" | ||
8 | |||
9 | # Load fixtures from the engine | ||
10 | if ActiveSupport::TestCase.respond_to?(:fixture_paths=) | ||
11 | ActiveSupport::TestCase.fixture_paths = [File.expand_path("fixtures", __dir__)] | ||
12 | ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths | ||
13 | ActiveSupport::TestCase.file_fixture_path = File.expand_path("fixtures", __dir__) + "/files" | ||
14 | ActiveSupport::TestCase.fixtures :all | ||
15 | end | ||