vendor/assets/javascripts/angular-mocks.js in angularjs-rails-1.2.1 vs vendor/assets/javascripts/angular-mocks.js in angularjs-rails-1.2.2

- old
+ new

@@ -1,9 +1,9 @@ 'use strict'; /** - * @license AngularJS v1.2.1 + * @license AngularJS v1.2.2 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT * * TODO(vojta): wrap whole file into closure during build */ @@ -1570,10 +1570,10 @@ this.matchData = function(d) { if (angular.isUndefined(data)) return true; if (data && angular.isFunction(data.test)) return data.test(d); if (data && angular.isFunction(data)) return data(d); - if (data && !angular.isString(data)) return angular.toJson(data) == d; + if (data && !angular.isString(data)) return angular.equals(data, angular.fromJson(d)); return data == d; }; this.toString = function() { return method + ' ' + url;