[NEW] Initial Revision
[obnox/ohloh/ohloh_scm.git] / test / unit / git_pull_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 module Scm::Adapters
4         class GitPullTest < Scm::Test
5
6                 def test_basic_pull
7                         with_git_repository('git') do |src|
8                                 Scm::ScratchDir.new do |dest_dir|
9
10                                         dest = GitAdapter.new(:url => dest_dir).normalize
11                                         assert !dest.exist?
12
13                                         dest.pull(src)
14                                         assert dest.exist?
15
16                                         assert_equal src.log, dest.log
17                                 end
18                         end
19                 end
20
21         end
22 end