Skip to content

Commit

Permalink
don't let load fire
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinhook committed Dec 6, 2010
1 parent 4ba2f58 commit be7a49b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions generate/test/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ steal('//steal/test/test', function(s){
new steal.File('cookbook/test/funcunit/funcunit.js').save( funcunitContent );

t.clear();
t.open('cookbook/cookbook.html')
print('trying to open ...')
t.open('cookbook/cookbook.html', false)
t.ok(Cookbook.Controllers.Recipe, "Recipe Controller")
t.ok(Cookbook.Models.Recipe, "Recipe Controller")
t.clear();
Expand All @@ -46,28 +47,31 @@ steal('//steal/test/test', function(s){
FuncUnit.load('cookbook/qunit.html');
});

s.test.test("scaffold functional tests", function(){
s.test.test("scaffold functional tests", function(t){
load('steal/rhino/steal.js');
load('funcunit/loader.js');
FuncUnit.load('cookbook/funcunit.html');

});

s.test.test("documentjs", function(t){
t.clear();
load('steal/rhino/steal.js');
_args = ['cookbook/cookbook.html']
load("documentjs/documentjs.js");
DocumentJS('cookbook/cookbook.html');
});

s.test.test("compress", function(t){
t.clear();
load("cookbook/scripts/build.js")

var cookbookPage = readFile('cookbook/cookbook.html').
replace("steal.js?cookbook,development", "steal.production.js?cookbook");
new steal.File('cookbook/cookbook.html').save( cookbookPage );

t.clear();
t.open('cookbook/cookbook.html')
t.open('cookbook/cookbook.html', false)
t.ok(Cookbook.Controllers.Recipe, "Recipe Controller")
t.ok(Cookbook.Models.Recipe, "Recipe Controller")
t.clear();
Expand Down

0 comments on commit be7a49b

Please sign in to comment.