diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 09:29:30 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 09:29:30 -0500 |
| commit | 0380a97230023a78ad08b738c4520e901485ed63 (patch) | |
| tree | 2f3b4e91453962fd5bb36cf652c808cb7f41c3a7 /rails/test/test_helper.rb | |
| parent | 6af7b09fa551c6cc980bb54fefd1db88c904654f (diff) | |
| download | lingo-0380a97230023a78ad08b738c4520e901485ed63.tar.gz lingo-0380a97230023a78ad08b738c4520e901485ed63.tar.bz2 lingo-0380a97230023a78ad08b738c4520e901485ed63.zip | |
Added Rails engine for scoreboard
refs #13
Diffstat (limited to 'rails/test/test_helper.rb')
| -rw-r--r-- | rails/test/test_helper.rb | 15 |
1 files changed, 15 insertions, 0 deletions
| diff --git a/rails/test/test_helper.rb b/rails/test/test_helper.rb new file mode 100644 index 0000000..7230d9c --- /dev/null +++ b/rails/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_path=) | ||
| 11 | ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__) | ||
| 12 | ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path | ||
| 13 | ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files" | ||
| 14 | ActiveSupport::TestCase.fixtures :all | ||
| 15 | end | ||
