Skip to content

Commit ad9a24f

Browse files
committed
Fix tests
1 parent e68bb5b commit ad9a24f

File tree

4 files changed

+9
-31
lines changed

4 files changed

+9
-31
lines changed

src/integration-test/groovy/appgenerator/VersionsControllerIntegrationSpec.groovy

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ class VersionsControllerIntegrationSpec extends Specification {
5353
List<String> versions = result.collect { it.version } as List<String>
5454

5555
then:
56-
versions.contains('3.1.13')
57-
versions.contains('3.1.13')
58-
versions.contains('3.1.14')
59-
versions.contains('3.1.15')
60-
versions.contains('3.1.16')
6156
versions.contains('3.2.2')
6257
versions.contains('3.2.3')
6358
versions.contains('3.2.4')
@@ -72,5 +67,6 @@ class VersionsControllerIntegrationSpec extends Specification {
7267
versions.contains('3.3.0')
7368
versions.contains('3.3.1')
7469
versions.contains('3.3.2')
70+
versions.contains('4.0.0')
7571
}
7672
}

src/test/groovy/appgenerator/GrailsVersionServiceSpec.groovy

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ class GrailsVersionServiceSpec extends Specification implements ServiceUnitTest<
1818
List<GrailsVersion> grailsVersions = service.getSupported(versions)
1919

2020
then:
21-
grailsVersions[0].versionText == "3.1.13"
22-
grailsVersions[1].versionText == "3.1.14.BUILD-SNAPSHOT"
23-
grailsVersions[2].versionText == "3.2.2"
24-
grailsVersions[3].versionText == "3.2.3.BUILD-SNAPSHOT"
25-
grailsVersions[4].versionText == "3.3.0.RC1"
26-
grailsVersions[5].versionText == "3.4.0"
27-
grailsVersions[6].versionText == "3.5.0"
28-
grailsVersions[7].versionText == "3.5.1"
29-
grailsVersions.size() == 8
21+
grailsVersions[0].versionText == "3.2.2"
22+
grailsVersions[1].versionText == "3.2.3.BUILD-SNAPSHOT"
23+
grailsVersions[2].versionText == "3.3.0.RC1"
24+
grailsVersions[3].versionText == "3.4.0"
25+
grailsVersions[4].versionText == "3.5.0"
26+
grailsVersions[5].versionText == "3.5.1"
27+
grailsVersions.size() == 6
3028
}
3129
}

src/test/groovy/appgenerator/ProjectGeneratorServiceSpec.groovy

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ import spock.lang.Specification
66

77
class ProjectGeneratorServiceSpec extends Specification implements ServiceUnitTest<ProjectGeneratorService> {
88

9-
void "test project app generation 3.1.13"() {
10-
given: 'the data to generate a project'
11-
def projectMetaData = new ProjectMetaData(
12-
name: 'foo',
13-
version: "3.1.13",
14-
profile: 'web'
15-
)
16-
17-
when: 'generating the project'
18-
def outputFile = service.getProject(projectMetaData)
19-
20-
then: 'the project is created'
21-
outputFile != null
22-
outputFile.length() > 0
23-
}
24-
259
void "test project app generation 3.2.2"() {
2610
given: 'the data to generate a project'
2711
def projectMetaData = new ProjectMetaData(

src/test/groovy/appgenerator/cmd/ProjectMetaDataCommandSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ProjectMetaDataCommandSpec extends Specification implements ControllerUnit
4141
name | version | profile | field | error
4242
null | "3.2.2" | 'web' | 'name' | 'nullable'
4343
'foo' | null | 'web' | 'version' | 'nullable'
44-
'foo' | "3.1.13" | null | 'profile' | 'nullable'
44+
'foo' | "3.3.0" | null | 'profile' | 'nullable'
4545
}
4646

4747
}

0 commit comments

Comments
 (0)