Module: ThoughtBot::Shoulda::Helpers

Included in:
ActionController::Integration::Session, Test::Unit::TestCase
Defined in:
lib/shoulda/helpers.rb

Instance Method Summary collapse

Instance Method Details

#report!(msg = "") ⇒ Object

Prints a message to stdout, tagged with the name of the calling method.



5
6
7
# File 'lib/shoulda/helpers.rb', line 5

def report!(msg = "")
  puts("#{caller.first}: #{msg}")
end