app/assets/javascripts/teabag-jasmine.js in teabag-0.3.2 vs app/assets/javascripts/teabag-jasmine.js in teabag-0.3.3
- old
+ new
@@ -2618,10 +2618,12 @@
Teabag.Date = Date;
Teabag.location = window.location;
+ Teabag.console = window.console;
+
Teabag.execute = function() {
if (this.defer) {
this.defer = false;
return;
}
@@ -2912,10 +2914,10 @@
Console.prototype.log = function(obj) {
if (obj == null) {
obj = {};
}
obj["_teabag"] = true;
- return console.log(JSON.stringify(obj));
+ return Teabag.console.log(JSON.stringify(obj));
};
return Console;
})();