test/test_tee.rb in loog-0.5.1 vs test/test_tee.rb in loog-0.5.2

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true # (The MIT License) # -# Copyright (c) 2018-2023 Yegor Bugayenko +# Copyright (c) 2018-2024 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -26,12 +26,16 @@ require_relative '../lib/loog' require_relative '../lib/loog/tee' # Loog::Tee test. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko +# Copyright:: Copyright (c) 2018-2024 Yegor Bugayenko # License:: MIT class TeeTest < Minitest::Test def test_simple_logging - Loog::Tee.new(Loog::VERBOSE, Loog::REGULAR).info('Works?') + tee = Loog::Tee.new(Loog::VERBOSE, Loog::REGULAR) + tee.info('Works?') + tee.debug('Works?') + tee.warn('Works?') + tee.error('Works?') end end