Skip to content

Commit e3ea1d9

Browse files
committed
adding setup spec test
1 parent eab346d commit e3ea1d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/logger_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@
3838
it 'should be able to log unknown' do
3939
expect { Telemetry::Logger.unknown('testing') }.to output(/ANY/).to_stdout_from_any_process
4040
end
41+
42+
it 'should be able to setup and set the level' do
43+
expect(Telemetry::Logger.setup(level: 'warn').level).to eq 2
44+
expect(Telemetry::Logger.setup(level: 'error').level).to eq 3
45+
end
4146
end

0 commit comments

Comments
 (0)