test/dummy_app/init.rb in minitest-spec-rails-5.4.0 vs test/dummy_app/init.rb in minitest-spec-rails-5.5.0
- old
+ new
@@ -1,14 +1,13 @@
-ENV["RAILS_ENV"] ||= "test"
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)
+ENV['RAILS_ENV'] ||= 'test'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __dir__)
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
config.secret_token = '012345678901234567890123456789'
@@ -29,10 +28,9 @@
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'