spec/lib/logstasher/railtie_spec.rb in md-logstasher-1.0.5 vs spec/lib/logstasher/railtie_spec.rb in md-logstasher-1.1.0

- old
+ new

@@ -17,16 +17,10 @@ describe ::LogStasher::Railtie do let(:config) { described_class.config.logstasher } describe 'logstasher.configure' do - subject do - described_class.instance.initializers.find do |initializer| - initializer.name == 'logstasher.configure' - end - end - it 'should configure LogStasher' do config.logger = ::Logger.new('/dev/null') config.log_level = "log_level" config.enabled = "enabled" config.include_parameters = "include_parameters" @@ -38,10 +32,10 @@ expect(::LogStasher).to receive(:serialize_parameters=).with("serialize_parameters") expect(::LogStasher).to receive(:silence_standard_logging=).with("silence_standard_logging") expect(::LogStasher).to receive(:logger=).with(config.logger).and_call_original expect(config.logger).to receive(:level=).with("log_level") - subject.run + ActiveSupport.run_load_hooks(:before_initialize) end end describe 'logstasher.load' do subject do