From 17df8df6761d7e268189158193eceef98f6e706b Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Sat, 9 Jan 2016 17:48:15 +0800 Subject: [PATCH] Added test --- .../IntegrationTests/OtherScenarios.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs index 52a045ed7d..8915dffdea 100644 --- a/src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs +++ b/src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs @@ -30,6 +30,21 @@ public void DoNotBlowUpWhenMasterAndDevelopPointAtSameCommit() } } + [Test] + public void AllowNotHavingMaster() + { + using (var fixture = new EmptyRepositoryFixture(new Config())) + { + fixture.Repository.MakeACommit(); + fixture.Repository.MakeATaggedCommit("1.0.0"); + fixture.Repository.MakeACommit(); + fixture.Repository.Checkout(fixture.Repository.CreateBranch("develop")); + fixture.Repository.Branches.Remove(fixture.Repository.Branches["master"]); + + fixture.AssertFullSemver("1.1.0-unstable.1"); + } + } + [Test] public void DoNotBlowUpWhenDevelopAndFeatureBranchPointAtSameCommit() {