ohloh_scm / branches / master / test / unit / git_patch_test.rb
history
require File.dirname(__FILE__) + '/../test_helper'
module Scm::Adapters
class GitPatchTest < Scm::Test
def test_patch_for_commit
with_git_repository('git') do |repo|
commit = repo.verbose_commit('b6e9220c3cabe53a4ed7f32952aeaeb8a822603d')
data = File.read(File.join(DATA_DIR, 'git_patch.diff'))
assert_equal data, repo.patch_for_commit(commit)
end
end
end
end
