Last active
August 29, 2015 14:04
-
-
Save jbodah/6041a9b60f698333c7e1 to your computer and use it in GitHub Desktop.
One-liner to get a diff between two strings and write it to a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'diffy'; File.open(Rails.root.join('diff'), 'w') {|f| f.write Diffy::Diff.new event_json, expected_json} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment