spec/integration/slices/slice_configuration_spec.rb in hanami-2.0.0.beta4 vs spec/integration/slices/slice_configuration_spec.rb in hanami-2.0.0.rc1

- old
+ new

@@ -1,15 +1,17 @@ # frozen_string_literal: true +require "stringio" + RSpec.describe "Slices / Slice configuration", :app_integration do specify "Slices receive a copy of the app configuration, and can make distinct modifications" do with_tmp_directory(Dir.mktmpdir) do write "config/app.rb", <<~RUBY require "hanami" module TestApp class App < Hanami::App - config.logger.stream = File.new("/dev/null", "w") + config.logger.stream = StringIO.new config.no_auto_register_paths << "structs" end end RUBY