Skip to content

Commit 94836cf

Browse files
Updating checkout tests to cover -b option
1 parent 1b86e11 commit 94836cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/units/test_lib.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ def test_commit_data
2121
assert_equal("test\n", data['message'])
2222
assert_equal(["546bec6f8872efa41d5d97a369f669165ecda0de"], data['parent'])
2323
end
24+
25+
def test_checkout
26+
assert(@lib.checkout('test_checkout_b',{:new_branch=>true}))
27+
assert(@lib.checkout('master'))
28+
end
2429

2530
# takes parameters, returns array of appropriate commit objects
2631
# :count

0 commit comments

Comments
 (0)