Sha256: 689218c8fd46893ea0b75e50e72b29a8e80ead6aa90b42b3b3057b56094fa77d

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

ENV["RAILS_ENV"] ||= "test"
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)
require 'bundler/setup'
require 'rails/all'
Bundler.require(:default, Rails.env)

module Dummy
  class Application < ::Rails::Application

    # Basic Engine
    config.root = File.join __FILE__, '..'
    config.cache_store = :memory_store
    config.assets.enabled = false if Rails.version > '3.1'
    config.secret_token = '012345678901234567890123456789'

    # Mimic Test Environment Config.
    config.whiny_nils = true if Rails.version < '4.0'
    config.consider_all_requests_local = true
    config.action_controller.perform_caching = false
    config.action_dispatch.show_exceptions = false
    config.action_controller.allow_forgery_protection = false
    config.action_mailer.delivery_method = :test
    config.active_support.deprecation = :stderr
    config.allow_concurrency = true
    config.cache_classes = true
    config.dependency_loading = true
    config.preload_frameworks = true
    config.eager_load = true
    config.secret_key_base = '012345678901234567890123456789'

    # Custom
    config.minitest_spec_rails.mini_shoulda = true

  end
end

Dummy::Application.initialize!
require 'rails/test_help'

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
minitest-spec-rails-5.1.1 test/dummy_app/init.rb
minitest-spec-rails-5.1.0 test/dummy_app/init.rb
minitest-spec-rails-orangejulius-5.0.5.pre.orangejulius test/dummy_app/init.rb
minitest-spec-rails-orangejulius-5.0.4.pre.orangejulius test/dummy_app/init.rb
minitest-spec-rails-5.0.4 test/dummy_app/init.rb
minitest-spec-rails-orangejulius-5.0.3.pre.orangejulius test/dummy_app/init.rb
minitest-spec-rails-5.0.3 test/dummy_app/init.rb