Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix null check on configuration for default buildpack.

  • Loading branch information...
commit 939454761fa0b51438d1ac4285f61a7779ce7b34 1 parent 301bfbe
@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 ?: DEFAULT_BUILDPACK_URL
+ def buildpackURL = params.buildpack == 'null' ? DEFAULT_BUILDPACK_URL : params.buildpack
logger.quiet "Setting buildpack for new application $app.name to $buildpackURL"
configureBuildpack(app.name, buildpackURL)
View
2  src/test/groovy/org/ratpackframework/gradle/HerokuAppCreateSpec.groovy
@@ -98,7 +98,7 @@ class HerokuAppCreateSpec extends Specification {
task.prepareStoredConfig = { a, b, c -> }
when:
- task.execute([appName: appName, buildpack: null])
+ task.execute([appName: appName, buildpack: 'null'])
then:
herokuAPI.createApp(_) >> app
Please sign in to comment.
Something went wrong with that request. Please try again.