Sha256: 92980daf946af303f2586aadf8c608e06b9f791e8d59656fb6eb929eac35d0f9
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require 'helper' class LoggingHelpersTest < Vault::TestCase include Vault::Test::LoggingHelpers # The LoggingHelpers mixin attaches a StringIO to Scrolls to capture log # 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vault-test-tools-0.3.9 | test/logging_helpers_test.rb |
vault-test-tools-0.3.8 | test/logging_helpers_test.rb |