Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created March 5, 2012 09:58
Show Gist options
  • Save pencilcheck/1977695 to your computer and use it in GitHub Desktop.
Save pencilcheck/1977695 to your computer and use it in GitHub Desktop.
require_relative './helper'
require 'rdiff'
require 'tempfile'
describe RDiff do
it "should produce signature file consistently" do
file = Tempfile.new 'test'
file.write "blah blah blah"
test_file = Tempfile.new 'test'
test_file.write "blah blah blah"
test_file.rsync_signature.should eq(file.rsync_signature)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment