spec/unit/loga/formatters/simple_formatter_spec.rb in loga-2.2.0 vs spec/unit/loga/formatters/simple_formatter_spec.rb in loga-2.3.0

- old
+ new

@@ -18,10 +18,11 @@ end end context 'when the message parameter is a nil' do let(:message) { nil } + specify do expect(subject).to eq("I, #{time_pid} nil\n") end end @@ -98,10 +99,12 @@ context 'when tags are available' do let(:tags) { %w[USER_54321 EmailWorker] } before do + # rubocop:disable RSpec/AnyInstance allow_any_instance_of(described_class).to receive(:current_tags).and_return(tags) + # rubocop:enable RSpec/AnyInstance end specify do expect(subject).to eq("I, #{time_pid}[USER_54321 EmailWorker] #{message}\n") end