Sha256: d588530249f46466df75172e1515a3e082a84ef4b594a95c1bdc157f102c88b1
Contents?: true
Size: 912 Bytes
Versions: 35
Compression:
Stored size: 912 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require_relative "<%= File.join("..", options[:dummy_path], "config/environment") -%>" <% unless options[:skip_active_record] -%> ActiveRecord::Migrator.migrations_paths = [File.expand_path("../<%= options[:dummy_path] -%>/db/migrate", __dir__)] <% if options[:mountable] -%> ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__) <% end -%> <% end -%> require "rails/test_help" <% unless options[:skip_active_record] -%> # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__) ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files" ActiveSupport::TestCase.fixtures :all end <% end -%>
Version data entries
35 entries across 32 versions & 5 rubygems