Skip to content

Commit f3be3f6

Browse files
committed
Restructured JRubyJarSpec
1 parent 7a54e50 commit f3be3f6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

jar-plugin/src/test/groovy/com/github/jrubygradle/jar/JRubyJarSpec.groovy

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class JRubyJarSpec extends Specification {
2323
}
2424
}
2525

26-
def "jrubyVersion should be configurable in a Gradle conventional way"() {
26+
void "jrubyVersion should be configurable in a Gradle conventional way"() {
2727
given:
2828
final String version = '1.7.20'
2929

@@ -35,7 +35,7 @@ class JRubyJarSpec extends Specification {
3535
task.jrubyVersion == version
3636
}
3737

38-
def "jrubyMainsVersion should be configurable in a Gradle conventional way"() {
38+
void "jrubyMainsVersion should be configurable in a Gradle conventional way"() {
3939
given:
4040
final String version = '0.4.1.'
4141

@@ -47,15 +47,15 @@ class JRubyJarSpec extends Specification {
4747
task.jrubyMainsVersion == version
4848
}
4949

50-
def "configuration should default to 'jrubyJar'"() {
50+
void "configuration should default to 'jrubyJar'"() {
5151
given:
5252
JRubyJar task = project.task('spock-jar', type: JRubyJar)
5353

5454
expect:
5555
task.configuration == 'jrubyJar'
5656
}
5757

58-
def "configuration should be configurable in a Gradle conventional way"() {
58+
void "configuration should be configurable in a Gradle conventional way"() {
5959
given:
6060
final String customConfig = 'spockConfig'
6161

@@ -68,7 +68,7 @@ class JRubyJarSpec extends Specification {
6868
}
6969

7070
@Issue('https://github.com/jruby-gradle/jruby-gradle-plugin/issues/202')
71-
def "defaults 'gems' should log an error"() {
71+
void "defaults 'gems' should log an error"() {
7272
given:
7373
boolean evaluated = false
7474
JRubyJar task = project.task('spock-jar', type: JRubyJar)
@@ -83,9 +83,8 @@ class JRubyJarSpec extends Specification {
8383
evaluated
8484
}
8585

86-
8786
@Issue('https://github.com/jruby-gradle/jruby-gradle-plugin/issues/169')
88-
def "configuration should be configurable with a Configuration object"() {
87+
void "configuration should be configurable with a Configuration object"() {
8988
given: 'a configuration'
9089
project.with {
9190
configurations {
@@ -103,7 +102,7 @@ class JRubyJarSpec extends Specification {
103102
task.configuration == customConfig.name
104103
}
105104

106-
def "configure library()"() {
105+
void "configure library()"() {
107106
given: 'a task with initScript library()'
108107
boolean evaluated = false
109108
JRubyJar task = project.task('library-jar', type: JRubyJar)

0 commit comments

Comments
 (0)