Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
1200fbb9
Commit
1200fbb9
authored
Oct 10, 2013
by
zeke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all tests passing; feature parity with diet, plus new server pro-tips
parent
12020b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
test
bin/test
+17
-18
No files found.
bin/test
View file @
1200fbb9
...
@@ -40,31 +40,30 @@ testStableVersion() {
...
@@ -40,31 +40,30 @@ testStableVersion() {
assertCapturedSuccess
assertCapturedSuccess
}
}
# testUnstableVersion() {
testUnstableVersion
()
{
# compile "unstable-version"
compile
"unstable-version"
# assertCaptured "Resolved node version for >0.11.0 is 0.11"
assertCaptured
"Resolved node version for >0.11.0 is 0.11"
assertCapturedSuccess
# assertCapturedSuccess
}
# }
# testInvalidVersion() {
# testInvalidVersion() {
# compile "invalid-node-version"
# compile "invalid-node-version"
# assertCapturedError 1 "not found among available versions"
# assertCapturedError 1 "not found among available versions"
# }
# }
#
testProfileCreated() {
testProfileCreated
()
{
#
compile "stable-node"
compile
"stable-node"
#
assertCaptured "Building runtime environment"
assertCaptured
"Building runtime environment"
# assertFile "export PATH=\"\$HOME/vendor/node/bin:
$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" ".profile.d/nodejs.sh"
assertFile
"export PATH=
\"\$
HOME/vendor/node/bin:
\
$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
".profile.d/nodejs.sh"
#
assertCapturedSuccess
assertCapturedSuccess
#
}
}
#
testNodeModulesCached() {
testNodeModulesCached
()
{
#
cache=$(mktmpdir)
cache
=
$(
mktmpdir
)
#
compile "caching" $cache
compile
"caching"
$cache
#
assertCaptured "Caching node"
assertCaptured
"Caching node"
# assertEquals "1" "$(ls -1 $cache/0.10.18
| wc -l)"
assertEquals
"1"
"
$(
ls
-1
$cache
/
|
wc
-l
)
"
#
}
}
# Pending
# Pending
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment