Sha256: c1d15bb4329f80c790d765be0db98b28a77365d102b9ce25fa526a81d226b1a6

Contents?: true

Size: 1 KB

Versions: 37

Compression:

Stored size: 1 KB

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 engine? -%>
require "rails/test_unit/reporter"
Rails::TestUnitReporter.executable = 'bin/test'
<% end -%>

<% 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

37 entries across 37 versions & 4 rubygems

Version Path
railties-6.1.7.10 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.9 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.8 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.6 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.5 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.3 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.6.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.6 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.5.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.5 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.6 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.5 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt