Skip to content

Commit

Permalink
#403 test /trace
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 7, 2018
1 parent e149a13 commit 1087688
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion test/node/test_front.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_renders_public_pages
'/version',
'/farm',
'/metronome',
'/score'
'/score',
'/trace'
],
'404' => [
'/this-is-absent',
Expand Down
8 changes: 4 additions & 4 deletions test/node/test_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@

class TraceTest < Minitest::Test
def test_records_log_lines
trace = Zold::Trace.new(Zold::Log::Regular.new, 2)
trace.info('This should not be visible')
trace.info('How are you, друг?')
trace.info('Works?')
trace = Zold::Trace.new(test_log, 2)
trace.error('This should not be visible')
trace.error('How are you, друг?')
trace.error('Works?')
assert(!trace.to_s.include?('visible'))
assert(trace.to_s.include?('друг'))
end
Expand Down

0 comments on commit 1087688

Please sign in to comment.