Return to Snippet

Revision: 28605
at July 10, 2010 06:03 by insanedreamer


Initial Code
def show(*entries)
    # used to preceed logger output to make it easier to find
    puts "\e[1;32m INSPECTING: #{Time.now} \e[0m"
    entries.each do |entry|
      puts "\e[1;31m #{entry.inspect}\e[0m"
    end
  end

Initial URL

                                

Initial Description
Put this in `test_helper.rb` and call with `show(object1, object2, etc.)`

Initial Title
Easy-to-spot debugging output in tests

Initial Tags
rails

Initial Language
Rails