Commit 1c3a5a03 by Vicent Martí

Merge pull request #693 from nulltoken/topic/enhance_branch_move_test_coverage

branch: cover with test that moving a non existing branch returns ENOTFOUND
parents 8c6329ee 48ce97dd
......@@ -60,3 +60,13 @@ void test_refs_branches_move__can_not_move_a_branch_through_its_canonical_name(v
{
cl_git_fail(git_branch_move(repo, "refs/heads/br2", NEW_BRANCH_NAME, 1));
}
void test_refs_branches_move__moving_a_non_exisiting_branch_returns_ENOTFOUND(void)
{
int error;
error = git_branch_move(repo, "where/am/I", NEW_BRANCH_NAME, 0);
cl_git_fail(error);
cl_assert_equal_i(GIT_ENOTFOUND, error);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment