Skip to content

Commit

Permalink
fixed tagName prefix and added test
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardGottschalk committed Jan 28, 2015
1 parent ba24332 commit 706d9bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ReleaseExtension {
}

public String getTagName() {
return prefix - "v$project.version" - suffix
return prefix + ("v$project.version" - suffix)
}

public File getVersionFile() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ public class ReleaseExtensionTest {
public void getTagName() {
assertEquals('v1.2.3', extension.tagName)
}

@Test
public void getTagNameWithPrefix() {
extension.setPrefix('myPrefix_')

assertEquals('myPrefix_v1.2.3', extension.tagName)
}

@Test
public void versionFile() {
Expand Down

0 comments on commit 706d9bc

Please sign in to comment.