Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit 12999ce

Browse files
author
Jake Ginnivan
committed
Fixing issue with approval tests
1 parent e09643e commit 12999ce

5 files changed

Lines changed: 11 additions & 11 deletions

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AllTags.approved.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
- [3] - Issue4
44

5-
Commits: DE67510945...DE67510945
5+
Commits: 66E022FEDC...66E022FEDC
66

77

88
# 0.2.0 (05 January 2012)
99

1010
- [2] - Issue3
1111

12-
Commits: F8C83FD88C...CD7A26452D
12+
Commits: 1DAD827848...EA6F7EA20E
1313

1414

1515
# 0.1.0 (03 January 2012)
1616

1717
- [0] - Issue1
1818
- [1] - Issue2
1919

20-
Commits: 75B636A423...D2F38F9B38
20+
Commits: B44B325984...D23E3668A8

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AllTagsWithNoCommitsOrIssuesAfterLastRelease.approved.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
- [2] - Issue3
44

5-
Commits: F8C83FD88C...CD7A26452D
5+
Commits: 1DAD827848...EA6F7EA20E
66

77

88
# 0.1.0 (03 January 2012)
99

1010
- [0] - Issue1
1111
- [1] - Issue2
1212

13-
Commits: 75B636A423...D2F38F9B38
13+
Commits: B44B325984...D23E3668A8

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AppendOnlyNewItems.approved.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
- [3] - Issue4
44

5-
Commits: DE67510945...DE67510945
5+
Commits: 66E022FEDC...66E022FEDC
66

77

88
# 0.2.0 (05 January 2012)
99

1010
- [2] - Edited Issue3
1111

12-
Commits: F8C83FD88C...CD7A26452D
12+
Commits: 1DAD827848...EA6F7EA20E
1313

1414

1515
# 0.1.0 (03 January 2012)
1616

1717
- [0] - Edited Issue1
1818
- [1] - Edited Issue2
1919

20-
Commits: 75B636A423...D2F38F9B38
20+
Commits: B44B325984...D23E3668A8

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ public void AppendOnlyNewItems()
7474
7575
- [2] - Edited Issue3
7676
77-
Commits: F8C83FD88C...CD7A26452D
77+
Commits: 1DAD827848...EA6F7EA20E
7878
7979
8080
# 0.1.0 (03 January 2012)
8181
8282
- [0] - Edited Issue1
8383
- [1] - Edited Issue2
8484
85-
Commits: 75B636A423...D2F38F9B38");
85+
Commits: B44B325984...D23E3668A8");
8686

8787
var releaseNotes = ReleaseNotesGenerator.GenerateReleaseNotes(
8888
repo, issueTracker, previousReleaseNotes, new string[0],

src/GitReleaseNotes.Tests/TestDataCreator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private string GetNextId()
9797
private Commit CreateCommit(DateTimeOffset when)
9898
{
9999
var commit = Substitute.For<Commit>();
100-
var shaBasedOnDate = SHA1.Create().ComputeHash(Encoding.ASCII.GetBytes(when.ToString()));
100+
var shaBasedOnDate = SHA1.Create().ComputeHash(Encoding.ASCII.GetBytes(when.DateTime.ToLongDateString()));
101101
commit.Author.Returns(new Signature("Some Dude", "[email protected]", when));
102102
commit.Id.Returns(new ObjectId(shaBasedOnDate));
103103
commit.Sha.Returns(BitConverter.ToString(shaBasedOnDate).Replace("-", string.Empty));

0 commit comments

Comments
 (0)