Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes default buildpack bug.

  • Loading branch information...
commit 214bfa4d006babcf2cf83f0104b8a2ecb4c447f2 1 parent 87ce69b
@marcoVermeulen authored
View
2  src/main/groovy/org/ratpackframework/gradle/HerokuAppCreateTask.groovy
@@ -32,7 +32,7 @@ class HerokuAppCreateTask extends HerokuTask {
logger.quiet " }"
}
- def buildpackURL = params.buildpack == 'null' ? DEFAULT_BUILDPACK_URL : params.buildpack
+ def buildpackURL = !params.buildpack ? DEFAULT_BUILDPACK_URL : params.buildpack
logger.quiet "Setting buildpack for new application $app.name to $buildpackURL"
configureBuildpack(app.name, buildpackURL)
View
3  src/test/groovy/org/ratpackframework/gradle/HerokuAppCreateSpec.groovy
@@ -2,6 +2,7 @@ package org.ratpackframework.gradle
import com.heroku.api.App
import com.heroku.api.Heroku
import com.heroku.api.HerokuAPI
+import org.codehaus.groovy.runtime.NullObject
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification
@@ -98,7 +99,7 @@ class HerokuAppCreateSpec extends Specification {
task.prepareStoredConfig = { a, b, c -> }
when:
- task.execute([appName: appName, buildpack: 'null'])
+ task.execute([appName: appName, buildpack: new NullObject()])
then:
herokuAPI.createApp(_) >> app
Please sign in to comment.
Something went wrong with that request. Please try again.