test/logging_helpers_test.rb in vault-test-tools-0.3.6 vs test/logging_helpers_test.rb in vault-test-tools-0.3.7

- old
+ new

@@ -7,6 +7,16 @@ # messages. def test_scrolls_logs_to_stream Scrolls.log(key: 'value') assert_equal("key=value", Scrolls.stream.string.strip) end + + def test_logline + Scrolls.log(foo: 'bar') + assert_includes(logline, 'foo=bar') + end + + def test_logdata + Scrolls.log(foo: 'baz') + assert_equal('baz', logdata[:foo]) + end end