Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

All tests are passing \o//

  • Loading branch information...
commit a1aa8f6f97bad4476178e303784756da61cd2259 1 parent d48116f
@twolfson authored
Showing with 34 additions and 34 deletions.
  1. +1 −1  tasks/curl.js
  2. +33 −33 test/curl-dir_test.js
View
2  tasks/curl.js
@@ -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
66 test/curl-dir_test.js
@@ -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();
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.