Skip to content

Commit

Permalink
Add assertions for last tag
Browse files Browse the repository at this point in the history
  • Loading branch information
selesse committed May 17, 2015
1 parent 863e095 commit 590f5e1
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -134,6 +134,10 @@ class ComplexChangelogGeneratorTest {
def (tag, date) = ChangelogParser.extractTagAndDate(lightWeightTag)
assertThat(tag).isEqualTo('v0.2.0-l')
assertThat(dateOccurredInLastDay(date)).isTrue()

(tag, date) = ChangelogParser.extractTagAndDate(annotatedTag)
assertThat(tag).isEqualTo('v0.1.0-a')
assertThat(dateOccurredInLastDay(date)).isTrue()
}

boolean dateOccurredInLastDay(String dateFormattedString) {
Expand Down

0 comments on commit 590f5e1

Please sign in to comment.