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



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

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



145
146
147
# File 'lib/repla/logger/test/tc_logger.rb', line 145

def teardown
  @window.close
end

#test_simple_loggingObject



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

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