TestHelpers

Test the helper functions in test_helper.rb

Public Instance Methods

test_set_and_clear_restart_messages() click to toggle source
# File test/test_context.rb, line 12
def test_set_and_clear_restart_messages()
  service = Context.new(@splunkrc).login()
  assert_false(service.server_requires_restart?)

  set_restart_message(service)
  assert_true(service.server_requires_restart?)

  clear_restart_message(service)
  assert_false(service.server_requires_restart?)
end
test_temporary_name() click to toggle source
# File test/test_context.rb, line 8
def test_temporary_name
  assert_true(temporary_name().start_with?("delete-me"))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.