Make equals without messages more resilient

When called without a message parameter the tests would fail under some
environments. I'm not clear on what is causing the failure, perhaps
ruby version, but this patch cleans up the issues there.
This commit is contained in:
kpdecker
2013-01-19 13:19:03 -06:00
parent 822d98a1ef
commit d1fdb82291
+6
View File
@@ -20,6 +20,12 @@ if (!Handlebars) {
return Handlebars.compile(template, options);
}
};
} else {
var _equal = equal;
equals = equal = function(a, b, msg) {
// Allow exec with missing message params
_equal(a, b, msg || '');
};
}
suite("basic context");