Skip to content

Commit

Permalink
#11 more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 28, 2023
1 parent d3e881e commit 219bac6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_loog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def test_null_logging
end

def test_buffering
b = Loog::Buffer.new
b.info('Hello, world!')
assert b.to_s.include?('Hello')
b = Loog::Buffer.new(formatter: Loog::FULL)
b.debug('Hello, world!')
stdout = b.to_s
assert(stdout.include?('Hello'))
assert(stdout.include?('DEBUG'))
end

def test_quiet_buffering
Expand Down

0 comments on commit 219bac6

Please sign in to comment.