Let make take other falsy values for content.

This commit is contained in:
Ben Orenstein
2012-03-21 17:21:16 -04:00
parent 69d2c50640
commit c7034b9735
2 changed files with 5 additions and 2 deletions

View File

@@ -33,9 +33,12 @@ $(document).ready(function() {
equal($(div).text(), 'one two three');
});
test("View: make can take an argument of 0", function() {
test("View: make can take falsy values for content", function() {
var div = view.make('div', {id: 'test-div'}, 0);
equal($(div).text(), '0');
var div = view.make('div', {id: 'test-div'}, '');
equal($(div).text(), '');
});
test("View: initialize", function() {