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
85170d5f
Commit
85170d5f
authored
Mar 27, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that nothing is cached
parent
9681b4fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
test
bin/test
+15
-1
No files found.
bin/test
View file @
85170d5f
...
...
@@ -33,6 +33,13 @@ testPackageJsonWithoutVersion() {
assertCapturedSuccess
}
testNothingCached
()
{
cache
=
$(
mktmpdir
)
compile
"package-json-version"
$cache
assertCapturedSuccess
assertEquals
"0"
"
$(
ls
-1
$cache
|
wc
-l
)
"
}
## utils ########################################
pushd
$(
dirname
0
)
>
/dev/null
...
...
@@ -41,12 +48,19 @@ popd >/dev/null
source
${
BASE
}
/vendor/test-utils/test-utils
mktmpdir
()
{
dir
=
$(
mktemp
-t
testXXXXX
)
rm
-rf
$dir
mkdir
$dir
echo
$dir
}
detect
()
{
capture
${
BASE
}
/bin/detect
${
BASE
}
/test/
$1
}
compile
()
{
capture
${
BASE
}
/bin/compile
${
BASE
}
/test/
$1
capture
${
BASE
}
/bin/compile
${
BASE
}
/test/
$1
$2
}
source
${
BASE
}
/vendor/shunit2/shunit2
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