File tree Expand file tree Collapse file tree 5 files changed +4
-36
lines changed
src/test/groovy/com/github/jrubygradle/war Expand file tree Collapse file tree 5 files changed +4
-36
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package com.github.jrubygradle.war
2
2
3
- import org.gradle.api.Task
4
- import org.gradle.api.tasks.*
3
+
5
4
import org.gradle.api.tasks.bundling.War
6
5
import org.gradle.testfixtures.ProjectBuilder
7
- import org.junit.Test
8
- import spock.lang.*
9
-
10
-
11
- import static org.gradle.api.logging.LogLevel.LIFECYCLE
12
- import static org.junit.Assert.assertTrue
6
+ import spock.lang.Specification
13
7
14
8
/**
15
9
* @author R. Tyler Croy
@@ -27,7 +21,7 @@ class JRubyWarPluginSpec extends Specification {
27
21
28
22
def " Basic sanity check" () {
29
23
expect :
30
- project. tasks. jrubyWar. group == ' JRuby'
31
- project. tasks. jrubyWar instanceof War
24
+ project. tasks. jrubyWar. group == ' JRuby'
25
+ project. tasks. jrubyWar instanceof War
32
26
}
33
27
}
Original file line number Diff line number Diff line change @@ -9,16 +9,13 @@ import static org.gradle.api.logging.LogLevel.*
9
9
*
10
10
*/
11
11
class JRubyWarSpec extends Specification {
12
- static final File TEST_SCRIPT_DIR = new File ( System . getProperty(' TEST_SCRIPT_DIR' ) ?: ' src/test/resources/scripts' )
13
- static final File TESTROOT = new File (System . getProperty(' TESTROOT' ) ?: ' build/tmp/test/unittests' )
14
12
static final String TASK_NAME = ' WarWarTask'
15
13
16
14
def project
17
15
def warTask
18
16
19
17
void setup () {
20
18
project = ProjectBuilder . builder(). build()
21
- project. buildDir = TESTROOT
22
19
project. apply plugin : ' com.github.jruby-gradle.war'
23
20
warTask = project. task(TASK_NAME , type : JRubyWar )
24
21
}
You can’t perform that action at this time.
0 commit comments