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

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/railties-7.0.8.6/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.7/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8.7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8.6 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8.5 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.2.3/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.8 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.7.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.7.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.6 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.0.5.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt