Module: Vault::Test::LoggingHelpers
- Included in:
- Vault::TestCase
- Defined in:
- lib/vault-test-tools/logging_helpers.rb
Instance Method Summary collapse
Instance Method Details
#logdata ⇒ Object
16 17 18 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 16 def logdata @last_logdata ||= Logfmt.parse(logline) end |
#logline ⇒ Object
12 13 14 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 12 def logline @last_logline ||= Scrolls.stream.string end |
#setup ⇒ Object
5 6 7 8 9 10 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 5 def setup super Scrolls.stream = StringIO.new @last_logline = nil @last_logdata = nil end |