Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Jan 9, 2016
1 parent 14fb6c6 commit 17df8df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 17df8df

Please sign in to comment.