From 8f13a631e7b19674498664351f9d08b1e06752db Mon Sep 17 00:00:00 2001 From: "Davis W. Frank" Date: Sun, 14 Jun 2009 23:14:20 -0700 Subject: [PATCH] dwF: moving toNotEqual to report !this.env.equals_ instead of a straight !== --- src/Matchers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matchers.js b/src/Matchers.js index 206dd683..79b1784b 100644 --- a/src/Matchers.js +++ b/src/Matchers.js @@ -60,7 +60,7 @@ jasmine.Matchers.prototype.toEqual = function(expected) { jasmine.Matchers.prototype.should_equal = jasmine.Matchers.prototype.toEqual; jasmine.Matchers.prototype.toNotEqual = function(expected) { - return this.report((this.actual !== expected), + return this.report(!this.env.equals_(this.actual, expected), 'Expected ' + jasmine.Matchers.pp(expected) + ' to not equal ' + jasmine.Matchers.pp(this.actual) + ', but it does.'); }; /** @deprecated */