Skip to content

Commit eece801

Browse files
Adding Git.clone test for :branch option
1 parent 7662ed5 commit eece801

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/units/test_init.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ def test_git_clone
6767
end
6868
end
6969

70+
def test_git_clone_with_branch
71+
in_temp_dir do |path|
72+
g = Git.clone(@wbare, 'clone-branch', :branch => 'test')
73+
assert_equal(g.current_branch, 'test')
74+
end
75+
end
76+
7077
def test_git_clone_bare
7178
in_temp_dir do |path|
7279
g = Git.clone(@wbare, 'bare.git', :bare => true)

0 commit comments

Comments
 (0)