Skip to content

Instantly share code, notes, and snippets.

@chendo
Created June 13, 2009 11:12
Show Gist options
  • Save chendo/129201 to your computer and use it in GitHub Desktop.
Save chendo/129201 to your computer and use it in GitHub Desktop.
# put this inside spec_helper.rb
def p(*objs)
puts objs.map { |o| inspect.gsub('<', '&lt;').gsub('>', '&gt;') }.join("\n")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment