Permalink
Browse files

All tests are passing \o//

  • Loading branch information...
twolfson committed Feb 26, 2013
1 parent d48116f commit a1aa8f6f97bad4476178e303784756da61cd2259
Showing with 34 additions and 34 deletions.
  1. +1 −1 tasks/curl.js
  2. +33 −33 test/curl-dir_test.js
View
@@ -73,7 +73,7 @@ module.exports = function (grunt) {
var defaultRouter = path.basename;
grunt.registerMultiTask('curl-dir', 'Download collections of files from the internet via grunt.', function () {
// Fallback this.file and grunt.utils
- this.file = this.file || this.files[0];
+ this.file = this.file || this.files[0].orig;
grunt.utils = grunt.utils || grunt.util;
// TODO: If utils.minimatch was always defined, use that
grunt.file.glob.minimatch = grunt.file.glob.minimatch || grunt.file.minimatch;
View
@@ -25,44 +25,44 @@ exports['curl-dir'] = {
setUp: function(done) {
// setup here
done();
- // },
- // 'multi': function(test) {
- // test.expect(2);
- // // tests here
- // var expectedLabContent = grunt.file.read('expected/file.js'),
- // actualLabContent = grunt.file.read('actual/multi/LAB.min.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
+ },
+ 'multi': function(test) {
+ test.expect(2);
+ // tests here
+ var expectedLabContent = grunt.file.read('expected/file.js'),
+ actualLabContent = grunt.file.read('actual/multi/LAB.min.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
- // var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
- // actualCookiejarContent = grunt.file.read('actual/multi/cookiejar.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
+ var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
+ actualCookiejarContent = grunt.file.read('actual/multi/cookiejar.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
- // test.done();
- // },
- // 'braceExpansion': function(test) {
- // test.expect(2);
- // // tests here
- // var expectedLabContent = grunt.file.read('expected/file.js'),
- // actualLabContent = grunt.file.read('actual/braceExpansion/LAB.min.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
+ test.done();
+ },
+ 'braceExpansion': function(test) {
+ test.expect(2);
+ // tests here
+ var expectedLabContent = grunt.file.read('expected/file.js'),
+ actualLabContent = grunt.file.read('actual/braceExpansion/LAB.min.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
- // var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
- // actualCookiejarContent = grunt.file.read('actual/braceExpansion/cookiejar.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
+ var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
+ actualCookiejarContent = grunt.file.read('actual/braceExpansion/cookiejar.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
- // test.done();
- // },
- // 'router': function(test) {
- // test.expect(2);
- // // tests here
- // var expectedLabContent = grunt.file.read('expected/file.js'),
- // actualLabContent = grunt.file.read('actual/router/ajax/libs/labjs/2.0.3/LAB.min.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
+ test.done();
+ },
+ 'router': function(test) {
+ test.expect(2);
+ // tests here
+ var expectedLabContent = grunt.file.read('expected/file.js'),
+ actualLabContent = grunt.file.read('actual/router/ajax/libs/labjs/2.0.3/LAB.min.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
- // var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
- // actualCookiejarContent = grunt.file.read('actual/router/ajax/libs/cookiejar/0.5/cookiejar.js');
- // test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
+ var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
+ actualCookiejarContent = grunt.file.read('actual/router/ajax/libs/cookiejar/0.5/cookiejar.js');
+ test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
- // test.done();
+ test.done();
}
};

0 comments on commit a1aa8f6

Please sign in to comment.