Fixing test order.

This commit is contained in:
Elf M. Sternberg 2012-07-10 10:14:47 -07:00
parent a419da0c30
commit 2473b151d6
2 changed files with 3 additions and 7 deletions

View File

@ -142,9 +142,7 @@ module.exports = function(grunt) {
var file = grunt.file.read(src), var file = grunt.file.read(src),
out = path.basename(src, '.html'); out = path.basename(src, '.html');
grunt.file.write(path.join(dest, out + '.js'), 'define(' + _und.template(file).source + ');'); grunt.file.write(path.join(dest, out + '.js'), 'define(' + _und.template(file).source + ');');
if (done) { done();
done();
}
}); });
grunt.registerTask('templatize', 'Compile Underscored HTML to Javascript', function() { grunt.registerTask('templatize', 'Compile Underscored HTML to Javascript', function() {
@ -155,13 +153,12 @@ module.exports = function(grunt) {
if (sources.length === 0) { if (sources.length === 0) {
return done(); return done();
} }
async.forEachSeries(sources, async.forEachSeries(sources,
function(path, cb) { grunt.helper('templatize', path, dest, null); cb(); }, function(path, cb) { grunt.helper('templatize', path, dest, cb); },
done); done);
}); });
grunt.registerTask('dev', 'coffee:dev recess:dev templatize haml install'); grunt.registerTask('dev', 'coffee:dev recess:dev haml templatize install');
grunt.registerHelper('install', function(src, dest, done) { grunt.registerHelper('install', function(src, dest, done) {
grunt.file.copy(src, path.join(dest, path.basename(src))); grunt.file.copy(src, path.join(dest, path.basename(src)));

View File

@ -8,7 +8,6 @@ browser = new zombie.Browser()
describe 'Initialization', -> describe 'Initialization', ->
it 'should load the home page', (done) -> it 'should load the home page', (done) ->
console.log("Will it bleed?")
browser.visit 'http://127.0.0.1:8081/index.html', (error, browser, status) -> browser.visit 'http://127.0.0.1:8081/index.html', (error, browser, status) ->
if error then console.log(error) if error then console.log(error)
browser.text('title').should.be.equal('Priority / Ignore') browser.text('title').should.be.equal('Priority / Ignore')