Sha256: f6f66f3d258a7ce57b04516380db08d3fd7b6241710b5987875e111303a9ecae

Contents?: true

Size: 1.28 KB

Versions: 20

Compression:

Stored size: 1.28 KB

Contents

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

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
    if Rails.version < '4.0'
      config.threadsafe!
    else
      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'
    end

    # Custom
    config.minitest_spec_rails.mini_shoulda = true
    
  end
end

Dummy::Application.initialize!

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
minitest-spec-rails-4.7.11 test/dummy_app/init.rb
minitest-spec-rails-4.7.10 test/dummy_app/init.rb
minitest-spec-rails-4.7.9 test/dummy_app/init.rb
minitest-spec-rails-4.7.8 test/dummy_app/init.rb
minitest-spec-rails-4.7.7 test/dummy_app/init.rb
minitest-spec-rails-5.0.2 test/dummy_app/init.rb
minitest-spec-rails-5.0.1 test/dummy_app/init.rb
minitest-spec-rails-4.7.6 test/dummy_app/init.rb
minitest-spec-rails-5.0.0 test/dummy_app/init.rb
minitest-spec-rails-4.7.5 test/dummy_app/init.rb
minitest-spec-rails-4.7.4 test/dummy_app/init.rb
minitest-spec-rails-4.7.3 test/dummy_app/init.rb
minitest-spec-rails-4.7.2 test/dummy_app/init.rb
minitest-spec-rails-4.7.1 test/dummy_app/init.rb
minitest-spec-rails-4.7.0 test/dummy_app/init.rb
minitest-spec-rails-4.3.8 test/dummy_app/init.rb
minitest-spec-rails-4.3.7 test/dummy_app/init.rb
minitest-spec-rails-4.3.6 test/dummy_app/init.rb
minitest-spec-rails-4.3.5 test/dummy_app/init.rb
minitest-spec-rails-4.3.4 test/dummy_app/init.rb