Class: TestSimpleLogging

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/repla/logger/test/tc_logger.rb

Overview

Test logging via standard out

Instance Method Summary collapse

Instance Method Details

#setupObject



128
129
130
131
132
133
# File 'lib/repla/logger/test/tc_logger.rb', line 128

def setup
  Repla.load_plugin(Repla::Test::TEST_LOG_PLUGIN_FILE)
  window_id = Repla.run_plugin(Repla::Test::TEST_LOG_PLUGIN_NAME)
  @window = Repla::Window.new(window_id)
  assert(window_id == @window.window_id)
end

#teardownObject



140
141
142
# File 'lib/repla/logger/test/tc_logger.rb', line 140

def teardown
  @window.close
end

#test_simple_loggingObject



135
136
137
138
# File 'lib/repla/logger/test/tc_logger.rb', line 135

def test_simple_logging
  result = Repla::Test.test_log(@window)
  assert(result)
end