Sha256: 4e73aec80b87dcf296756c79444b1c5f926bab507062cc734c529079e696e4d0

Contents?: true

Size: 919 Bytes

Versions: 30

Compression:

Stored size: 919 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_paths=)
  ActiveSupport::TestCase.fixture_paths = [File.expand_path("fixtures", __dir__)]
  ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths
  ActiveSupport::TestCase.file_fixture_path = File.expand_path("fixtures", __dir__) + "/files"
  ActiveSupport::TestCase.fixtures :all
end
<% end -%>

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.5.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.5 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.1.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.4.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.1.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.4.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
omg-railties-8.0.0.alpha8 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
omg-railties-8.0.0.alpha7 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
omg-railties-8.0.0.alpha4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
omg-railties-8.0.0.alpha3 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.0 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.0.rc1 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.1.3.4/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.0.beta3 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.2.0.beta2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-7.1.3.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt