From 462af79d21cc33b81f3f62a16d52ef6cfa960cb5 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 7 Jan 2015 10:11:55 -0700 Subject: [PATCH] Fix deprecation suppression in specs --- spec/spec-helper.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index e726d98f9..cae8954e3 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -207,10 +207,10 @@ jasmine.attachToDOM = (element) -> deprecationsSnapshot = null jasmine.snapshotDeprecations = -> - deprecationsSnapshot = Grim.getDeprecations() # suppress deprecations!! + deprecationsSnapshot = _.clone(Grim.deprecations) jasmine.restoreDeprecationsSnapshot = -> - Grim.grimDeprecations = deprecationsSnapshot + Grim.deprecations = deprecationsSnapshot addCustomMatchers = (spec) -> spec.addMatchers