about summary refs log tree commit diff stats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
commit0929719a845897cc8567cf972e07a69a71f0fa6f (patch)
tree2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /test/test_helper.rb
parent01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff)
downloadwittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.gz
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.bz2
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.zip
Migrate to a full rails app
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 9d47a1b..0c22470 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb
@@ -1,15 +1,15 @@
1# Configure Rails Environment 1ENV["RAILS_ENV"] ||= "test"
2ENV["RAILS_ENV"] = "test" 2require_relative "../config/environment"
3
4require_relative "../test/dummy/config/environment"
5ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)]
6ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__)
7require "rails/test_help" 3require "rails/test_help"
8 4
9# Load fixtures from the engine 5module ActiveSupport
10if ActiveSupport::TestCase.respond_to?(:fixture_paths=) 6 class TestCase
11 ActiveSupport::TestCase.fixture_paths = [File.expand_path("fixtures", __dir__)] 7 # Run tests in parallel with specified workers
12 ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths 8 parallelize(workers: :number_of_processors)
13 ActiveSupport::TestCase.file_fixture_path = File.expand_path("fixtures", __dir__) + "/files" 9
14 ActiveSupport::TestCase.fixtures :all 10 # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
11 fixtures :all
12
13 # Add more helper methods to be used by all tests here...
14 end
15end 15end