From 1253ab13dd4e069906c68ce96b8ccbe760bb27f6 Mon Sep 17 00:00:00 2001 From: Gregor Riegler Date: Sat, 4 Mar 2023 11:45:40 +0100 Subject: [PATCH] Test for feature branches with dash --- mob_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mob_test.go b/mob_test.go index 32a58668..06198af9 100644 --- a/mob_test.go +++ b/mob_test.go @@ -1267,6 +1267,17 @@ func TestStartNextFeatureBranch(t *testing.T) { assertNoMobSessionBranches(t, configuration, "mob-session") } +func TestStartDoneFeatureBranchWithDash(t *testing.T) { + _, configuration := setup(t) + git("checkout", "-b", "feat/load_test_DLC-253") + git("push", "origin", "feat/load_test_DLC-253", "--set-upstream") + start(configuration) + createFile(t, "file1.txt", "contentIrrelevant") + done(configuration) + + assertNoMobSessionBranches(t, configuration, "mob/feat/load_test_DLC-253") +} + func TestGitRootDir(t *testing.T) { setup(t) expectedPath, _ := filepath.EvalSymlinks(tempDir + "/local")