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.4.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.3 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/railties-6.1.4/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.4 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.3.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.3.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.3 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.2.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.0 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.0.rc2 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt
railties-6.1.0.rc1 lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt