Skip to content

Instantly share code, notes, and snippets.

@demimismo
Created November 15, 2012 17:51
Show Gist options
  • Save demimismo/4080072 to your computer and use it in GitHub Desktop.
Save demimismo/4080072 to your computer and use it in GitHub Desktop.
differ = RSpec::Expectations::Differ.new
puts differ.diff_as_object "Lorem Ipsum is simply dummy text of the printing\n and typeseting industry",
"Lorem Ipsum is simply dummy text of the printing\n and typesetting industry"
Lorem Ipsum is simply dummy text of the printing
- and typesetting industry
+ and typeseting industry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment