Skip to content

Commit

Permalink
Test updates to verify that this works..
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Dec 4, 2012
1 parent 5191a09 commit 6aa4871
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,4 +9,5 @@ CVS/
*~
.com.apple.timemachine.supported
tests/assets/yql/build/*/*
tests/assets-global
coverage
3 changes: 2 additions & 1 deletion .shifter.json
@@ -1,4 +1,5 @@
{
"silent": false,
"istanbul": true
"istanbul": true,
"build-dir": "./tests/assets-global/"
}
2 changes: 1 addition & 1 deletion tests/assets/yql/src/uploader/build.json
Expand Up @@ -7,7 +7,7 @@
"builds": {
"uploader": {
"copy": [
[ "swf/flashuploader.swf", "../../build/uploader/assets/flashuploader.swf" ]
[ "swf/flashuploader.swf", "../../../../assets-global/uploader/assets/flashuploader.swf" ]
],
"jsfiles": [
"uploader.js"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/yql/src/yql/build.json
Expand Up @@ -6,7 +6,7 @@
"builds": {
"yql": {
"exec": [
"shifter --config test.json",
"shifter --config test.json --no-global-config",
"echo 'Foobar'"
],
"postexec": [
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/yql/src/yql2/build.json
Expand Up @@ -3,7 +3,7 @@
"builds": {
"yql2": {
"exec": [
"shifter --config test.json",
"shifter --config test.json --no-global-config",
"echo 'Foobar'"
],
"postexec": [
Expand Down
6 changes: 3 additions & 3 deletions tests/builder-uglify-uploader.js
Expand Up @@ -7,7 +7,7 @@ var vows = require('vows'),
shifter = require('../lib'),
base = path.join(__dirname, 'assets/yql/'),
crypto = require('crypto'),
buildBase = path.join(base, 'build'),
buildBase = path.join(__dirname, 'assets-global'),
buildXBase = path.join(base, 'build-uglify'),
srcBase = path.join(base, 'src/uploader'),
rimraf = require('rimraf');
Expand All @@ -16,12 +16,12 @@ var vows = require('vows'),
var tests = {
'clean build': {
topic: function() {
rimraf(path.join(buildBase, 'uploader'), this.callback);
rimraf(path.join(buildBase), this.callback);
},
'should not have build dir and': {
topic: function() {
var self = this;
fs.stat(path.join(buildBase, 'uploader'), function(err) {
fs.stat(path.join(buildBase), function(err) {
self.callback(null, err);
});
},
Expand Down

0 comments on commit 6aa4871

Please sign in to comment.