ohloh_scm / branches / master / test / unit / hg_patch_test.rb
history
require File.dirname(__FILE__) + '/../test_helper'
module Scm::Adapters
class HgPatchTest < Scm::Test
def test_patch_for_commit
with_hg_repository('hg') do |repo|
commit = repo.verbose_commit(1)
data = File.read(File.join(DATA_DIR, 'hg_patch.diff'))
assert_equal data, repo.patch_for_commit(commit)
end
end
end
end
