Skip to content

Commit b0e7067

Browse files
committed
Add test for options in compatible logger
1 parent a87c5fa commit b0e7067

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/console/compatible/logger.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@
4343
expect(logger.level).to be_a(Integer)
4444
expect(logger.level).to be == ::Logger::DEBUG
4545
end
46+
47+
it "accepts keyword arguments and passes them to the log device" do
48+
logger.add(Logger::INFO, "Hello World", request_id: 137)
49+
50+
expect(stream.string).to be(:include?, '"request_id": 137')
51+
end
4652
end

0 commit comments

Comments
 (0)