module CLI::Kit::Support::TestHelper

Public Instance Methods

assert_all_commands_run(should_raise: true) click to toggle source
# File lib/cli/kit/support/test_helper.rb, line 10
def assert_all_commands_run(should_raise: true)
  errors = CLI::Kit::System.error_message
  CLI::Kit::System.reset!
  assert false, errors if should_raise && !errors.nil?
  errors
end
setup() click to toggle source
Calls superclass method
# File lib/cli/kit/support/test_helper.rb, line 5
def setup
  super
  CLI::Kit::System.reset!
end
teardown() click to toggle source
Calls superclass method
# File lib/cli/kit/support/test_helper.rb, line 17
def teardown
  super
  assert_all_commands_run
end