Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

upgraded plugin & test app to grails 2.2.0

  • Loading branch information...
commit b1c2546a5a9217119a080f3c38a59d65fc933804 1 parent 92a20ef
Rob Fletcher authored
View
2  application.properties
@@ -1,4 +1,4 @@
#Grails Metadata file
#Fri Sep 28 22:49:43 BST 2012
-app.grails.version=2.1.1
+app.grails.version=2.2.0
app.name=angular-scaffolding
View
2  grails-app/conf/BuildConfig.groovy
@@ -19,7 +19,7 @@ grails.project.dependency.resolution = {
}
plugins {
- build(':release:2.0.4', ':rest-client-builder:1.0.2') {
+ build(':release:2.2.0', ':rest-client-builder:1.0.2') {
export = false
}
}
View
2  test/apps/grails-ng/application.properties
@@ -1,6 +1,6 @@
#Grails Metadata file
#Thu Oct 18 11:27:06 BST 2012
-app.grails.version=2.1.1
+app.grails.version=2.2.0
app.name=grails-ng
app.servlet.version=2.5
app.version=1.0-SNAPSHOT
View
48 test/apps/grails-ng/grails-app/conf/BuildConfig.groovy
@@ -5,23 +5,37 @@ grails.project.test.reports.dir = 'target/test-reports'
grails.project.target.level = 1.6
grails.project.dependency.resolution = {
- inherits 'global'
- log 'warn'
- repositories {
- grailsCentral()
- mavenCentral()
- mavenLocal()
- mavenRepo 'http://maven.springframework.org/milestone/'
- }
- dependencies {
- }
-
- plugins {
- build ":tomcat:$grailsVersion"
- compile ':cloud-foundry:1.2.3', ':cache-headers:1.1.5'
- runtime ":hibernate:$grailsVersion", ':resources:1.2.RC2', ':jquery:1.8.0', ':cached-resources:1.0', ':zipped-resources:1.0'
- test ':spock:0.6'
- }
+
+ inherits 'global'
+ log 'warn'
+
+ repositories {
+ grailsCentral()
+ mavenCentral()
+ mavenLocal()
+ mavenRepo 'http://maven.springframework.org/milestone/'
+ }
+
+ dependencies {
+ test 'org.spockframework:spock-grails-support:0.7-groovy-2.0'
+ }
+
+ plugins {
+ build ":tomcat:$grailsVersion"
+
+ compile ':cloud-foundry:1.2.3',
+ ':cache-headers:1.1.5'
+
+ runtime ":hibernate:$grailsVersion",
+ ':resources:1.2.RC2',
+ ':jquery:1.8.3',
+ ':cached-resources:1.0',
+ ':zipped-resources:1.0'
+
+ test(':spock:0.7') {
+ exclude 'spock-grails-support'
+ }
+ }
}
grails.plugin.location.'angular-scaffolding' = '../../..'
View
8 test/apps/grails-ng/test/unit/grails/plugin/angular/test/AlbumControllerSpec.groovy
@@ -28,9 +28,9 @@ class AlbumControllerSpec extends Specification {
void setup() {
AlbumController.metaClass.cache = {}
- new Album(artist: 'Edward Sharpe and the Magnetic Zeroes', title: 'Here').save(failOnError: true, flush: true)
- new Album(artist: 'Metric', title: 'Synthetica').save(failOnError: true, flush: true)
- new Album(artist: 'Santigold', title: 'Master of My Make Believe').save(failOnError: true, flush: true)
+ new Album(artist: 'Edward Sharpe and the Magnetic Zeroes', title: 'Here', year: '2012').save(failOnError: true, flush: true)
+ new Album(artist: 'Metric', title: 'Synthetica', year: '2012').save(failOnError: true, flush: true)
+ new Album(artist: 'Santigold', title: 'Master of My Make Believe', year: '2012').save(failOnError: true, flush: true)
}
void 'list returns JSON'() {
@@ -98,7 +98,7 @@ class AlbumControllerSpec extends Specification {
void 'save returns 201 status if successful'() {
when:
- request.JSON = [artist: 'Yeasayer', title: 'Fragrant World'] as JSON
+ request.JSON = [artist: 'Yeasayer', title: 'Fragrant World', year: '2012'] as JSON
controller.save()
then:
Please sign in to comment.
Something went wrong with that request. Please try again.