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
Branches
Tags
No related merge requests found
...@@ -13,6 +13,9 @@ export repo="$BATS_TMPDIR/testrepo" ...@@ -13,6 +13,9 @@ export repo="$BATS_TMPDIR/testrepo"
git commit -m "Initial commit." git commit -m "Initial commit."
git checkout -b master2 git checkout -b master2
git checkout -b no-conflict git checkout -b no-conflict
echo 1 > file2
git add file2
git commit -m "Another not-conflicting commit."
git checkout -b conflict git checkout -b conflict
echo 2 > file echo 2 > file
git commit file -m "Conflict with master." git commit file -m "Conflict with master."
...@@ -40,6 +43,12 @@ export repo="$BATS_TMPDIR/testrepo" ...@@ -40,6 +43,12 @@ export repo="$BATS_TMPDIR/testrepo"
merge-conflict master2 merge-conflict master2
} }
@test "Empty patch" {
cd "$repo"
git checkout master2 || true
merge-conflict
}
@test "Conflict" { @test "Conflict" {
cd "$repo" cd "$repo"
git checkout conflict || true 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