Skip to content
Snippets Groups Projects
Commit 58d23bac authored by nimrod's avatar nimrod
Browse files

- Added a specific test for empty patch (changed the no confict test to have a patch).

parent 511ff06e
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@ export repo="$BATS_TMPDIR/testrepo"
git commit -m "Initial commit."
git checkout -b master2
git checkout -b no-conflict
echo 1 > file2
git add file2
git commit -m "Another not-conflicting commit."
git checkout -b conflict
echo 2 > file
git commit file -m "Conflict with master."
......@@ -40,6 +43,12 @@ export repo="$BATS_TMPDIR/testrepo"
merge-conflict master2
}
@test "Empty patch" {
cd "$repo"
git checkout master2 || true
merge-conflict
}
@test "Conflict" {
cd "$repo"
git checkout conflict || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment