spec/integration/slices/slice_configuration_spec.rb in hanami-2.1.0 vs spec/integration/slices/slice_configuration_spec.rb in hanami-2.2.0.beta1

- old
+ new

@@ -10,11 +10,11 @@ module TestApp class App < Hanami::App config.logger.stream = StringIO.new - config.no_auto_register_paths << "structs" + config.no_auto_register_paths = ["structs"] end end RUBY write "config/slices/main.rb", <<~'RUBY' @@ -32,11 +32,11 @@ end RUBY require "hanami/prepare" - expect(TestApp::App.config.no_auto_register_paths).to eq %w[entities structs] - expect(Main::Slice.config.no_auto_register_paths).to eq %w[entities structs schemas] - expect(Search::Slice.config.no_auto_register_paths).to eq %w[entities structs] + expect(TestApp::App.config.no_auto_register_paths).to eq %w[structs] + expect(Main::Slice.config.no_auto_register_paths).to eq %w[structs schemas] + expect(Search::Slice.config.no_auto_register_paths).to eq %w[structs] end end end