Module: Shoulda::Helpers

Included in:
ActionController::Integration::Session, ActiveRecord::Macros, 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.



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

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