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