/ Published in: Rails
Put this in test_helper.rb and call with show(object1, object2, etc.)
Expand |
Embed | Plain Text
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
You need to login to post a comment.
