Commit a8a953e6 authored by David Dollar's avatar David Dollar

prettify

parent 5b757693
...@@ -4,29 +4,30 @@ ...@@ -4,29 +4,30 @@
# Create a Heroku app with the following buildpack: # Create a Heroku app with the following buildpack:
# https://github.com/ddollar/buildpack-test # https://github.com/ddollar/buildpack-test
# #
# Push this buildpack to the Heroku app to run the tests # Push this Node.js buildpack to that Heroku app to
# run the tests
# #
testDetectWithPackageJson() { testDetectWithPackageJson() {
detect package-json-version detect "package-json-version"
assertCaptured "Node.js" assertCaptured "Node.js"
assertCapturedSuccess assertCapturedSuccess
} }
testDetectWithoutPackageJson() { testDetectWithoutPackageJson() {
detect no-package-json detect "no-package-json"
assertCapturedError 1 "" assertCapturedError 1 ""
} }
testPackageJsonWithVersion() { testPackageJsonWithVersion() {
compile package-json-version compile "package-json-version"
assertCaptured "Using Node.js version: 0.6.11" assertCaptured "Using Node.js version: 0.6.11"
assertCaptured "Using npm version: 1.1.9" assertCaptured "Using npm version: 1.1.9"
assertCapturedSuccess assertCapturedSuccess
} }
testPackageJsonWithNoVersion() { testPackageJsonWithNoVersion() {
compile package-json-noversion compile "package-json-noversion"
assertCaptured "Using Node.js version: 0.4.7" assertCaptured "Using Node.js version: 0.4.7"
assertCaptured "Using npm version: 1.0.106" assertCaptured "Using npm version: 1.0.106"
assertCapturedSuccess assertCapturedSuccess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment