Skip to content

Commit

Permalink
Adjust spec to allow usage of any conforming logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekbsh committed Sep 22, 2020
1 parent d21e137 commit 3f0542b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/ddtrace/configuration/settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,14 @@
end

describe '#instance=' do
let(:logger) { Datadog::Logger.new(STDOUT) }
let(:logger) do
double(:logger,
debug: true,
info: true,
warn: true,
error: true,
level: true)
end

it 'updates the #instance setting' do
expect { settings.logger.instance = logger }
Expand Down

0 comments on commit 3f0542b

Please sign in to comment.