Class: Assit::ConsoleAction

Inherits:
Object show all
Defined in:
lib/assit/actions/console_action.rb

Overview

Prints to stderr if the assertion fails

Instance Method Summary collapse

Instance Method Details

#assert_it(message) ⇒ Object

The action



7
8
9
10
# File 'lib/assit/actions/console_action.rb', line 7

def assert_it(message)
  $stderr.puts("Assertion failed: " + message.to_s)
  $stderr.puts("at: " + caller.to_s)
end