These are chat archives for dry-rb/chat
boot.rbfile, which I load in tests, but it finalizes and freezes the app container, so
enable_stubs!does not work after that.
boot.rbfile (which loads everything and is a entry point for the app)
if ENV['RACK_ENV'] == 'test' require 'dry/system/stubs' App.enable_stubs! end
require_relative 'app/container' require_relative 'app/transaction' require_relative 'app/operation' require_relative 'app/import' if ENV['RACK_ENV'] == 'test' require 'dry/system/stubs' App.enable_stubs! end App.finalize! do |container| # Boot the app config before everything else container.start :app_config container.start :i18n end require_relative 'app/api'