Class: Assit::ConsoleAction
- Defined in:
- lib/assit/actions/console_action.rb
Overview
Prints to stderr if the assertion fails
Instance Method Summary collapse
-
#assert_it(message) ⇒ Object
The action.
Instance Method Details
#assert_it(message) ⇒ Object
The action
7 8 9 10 11 |
# File 'lib/assit/actions/console_action.rb', line 7 def assert_it() $stderr.puts("Assertion failed: " + .to_s) $stderr.puts("at: ") caller.each { |trace| $stderr.puts trace } end |