Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Mar 7, 2012
1 parent cd89392 commit 8f7c994
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/org/grails/maven/RepositoryControllerSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RepositoryControllerSpec extends spock.lang.Specification{
}
void "Test publish plugin invalid data"() {
when:"The publish plugin action is called with invalid data"
request.method = "PUT"
request.method = "POST"
controller.publish()
then:"Return a 403"
response.status == 400
Expand All @@ -37,7 +37,7 @@ class RepositoryControllerSpec extends spock.lang.Specification{
PluginRelease.count() == 1
PluginRelease.findByPluginAndReleaseVersion(tomcat, params.version) != null
when:"publish is called"
request.method = "PUT"
request.method = "POST"
controller.publish()
then:"The operation is forbidden because the plugin already exists"
response.status == 403
Expand All @@ -48,7 +48,7 @@ class RepositoryControllerSpec extends spock.lang.Specification{
when:"publish is called without files to upload"
params.plugin = "tomcat"
params.version = "1.0.0"
request.method = "PUT"
request.method = "POST"
controller.publish()

then:"A bad request response is issued"
Expand All @@ -68,7 +68,7 @@ class RepositoryControllerSpec extends spock.lang.Specification{
controller.metaClass.publishEvent = {
event = it
}
request.method = "PUT"
request.method = "POST"
controller.publish()

then:"The pending release is created and event published"
Expand Down

0 comments on commit 8f7c994

Please sign in to comment.