Skip to content

Commit

Permalink
fixed template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fponticelli committed Jan 24, 2011
1 parent 28ae0fb commit 45c6141
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/ufront/web/mvc/view/TestErazor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class TestErazor
dic.addDomain("it", hxculture.languages.It.language);
var helper = new TranslationHelper(dic);

var t = getTemplateData("@t._('o')");
t.viewContext.viewData.set("t", helper);
var t = getTemplateData("@_('o')");
helper.register(t.viewContext.viewData);
Assert.equals("o", t.view.render(t.viewContext, new Hash()));
}
#end
Expand Down
4 changes: 2 additions & 2 deletions test/ufront/web/mvc/view/TestHTemplate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class TestHTemplate
dic.addDomain("it", hxculture.languages.It.language);
var helper = new TranslationHelper(dic);

var t = getTemplateData("{:t._('o')}");
t.viewContext.viewData.set("t", helper);
var t = getTemplateData("{:_('o')}");
helper.register(t.viewContext.viewData);
Assert.equals("o", t.view.render(t.viewContext, new Hash()));
}
#end
Expand Down
3 changes: 2 additions & 1 deletion ufront.neko.hxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<class path="..\core\src" />
<class path="..\htemplate\src" />
<class path="..\utest\src" />
<class path="..\erazor\src" />
</classpaths>
<!-- Build options -->
<build>
Expand Down Expand Up @@ -51,6 +52,6 @@
<options>
<option showHiddenPaths="False" />
<option testMovie="Custom" />
<option testMovieCommand="neko bin\index.n" />
<option testMovieCommand="run.bat" />
</options>
</project>

0 comments on commit 45c6141

Please sign in to comment.