Sha256: d6da6f9f0e8c8b6d635a793a7517fd984d2e7d5062d29a1dd0d3ac57b907bb8c

Contents?: true

Size: 1.73 KB

Versions: 18

Compression:

Stored size: 1.73 KB

Contents

# frozen_string_literal: true

Dummy::Application.configure do
  # Settings specified here will take precedence over those in
  # config/application.rb

  # The test environment is used exclusively to run your application's
  # test suite. You never need to work with it otherwise. Remember that
  # your test database is "scratch space" for the test suite and is wiped
  # and recreated between test runs. Don't rely on the data there!
  config.cache_classes = true

  # Configure static asset server for tests with Cache-Control for performance
  cache_header_value = 'public, max-age=3600'

  if config.respond_to?(:public_file_server)
    # Rails 5.x
    config.public_file_server.enabled = true
    config.public_file_server.headers = {
      'Cache-Control' => cache_header_value
    }
  else
    # Rails 4.x
    config.static_cache_control = cache_header_value

    if config.respond_to?(:serve_static_files=)
      # Rails 4.2
      config.serve_static_files = true
    else
      # Rails 4.1
      config.serve_static_assets = true
    end
  end

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  # Raise exceptions instead of rendering exception templates
  config.action_dispatch.show_exceptions = false

  # Disable request forgery protection in test environment
  config.action_controller.allow_forgery_protection = false

  # Tell Action Mailer not to deliver emails to the real world.
  # The :test delivery method accumulates sent emails in the
  # ActionMailer::Base.deliveries array.
  config.action_mailer.delivery_method = :test

  # Print deprecation notices to the stderr
  config.active_support.deprecation = :stderr

  config.eager_load = false
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.4.rc.3 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.4.rc.2 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.4.rc.1 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.pre.1 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.rc.5 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.rc.4 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.rc.3 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.rc.2 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.2.rc.1 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.1 spec/dummy/config/environments/test.rb
g5_authenticatable-1.1.0 spec/dummy/config/environments/test.rb
g5_authenticatable-1.0.0 spec/dummy/config/environments/test.rb
g5_authenticatable-1.0.0.pre.4 spec/dummy/config/environments/test.rb
g5_authenticatable-1.0.0.pre.3 spec/dummy/config/environments/test.rb
g5_authenticatable-1.0.0.pre.2 spec/dummy/config/environments/test.rb
g5_authenticatable-1.0.0.pre.1 spec/dummy/config/environments/test.rb