Test TaggedLogging#tagged with single array arg
This adds a regression test for calling `TaggedLogging#tagged` (and thus `TaggedLogging::Formatter#tagged`) with a single array argument.
This commit is contained in:
parent
fb172431f8
commit
9900fe3fd1
@ -40,6 +40,11 @@ def flush(*)
|
||||
assert_equal "[BCX] [Jason] [New] Funky time\n", @output.string
|
||||
end
|
||||
|
||||
test "tagged with an array" do
|
||||
@logger.tagged(%w(BCX Jason New)) { @logger.info "Funky time" }
|
||||
assert_equal "[BCX] [Jason] [New] Funky time\n", @output.string
|
||||
end
|
||||
|
||||
test "tagged are flattened" do
|
||||
@logger.tagged("BCX", %w(Jason New)) { @logger.info "Funky time" }
|
||||
assert_equal "[BCX] [Jason] [New] Funky time\n", @output.string
|
||||
|
Loading…
Reference in New Issue
Block a user