Fix deprecation suppression in specs

This commit is contained in:
Nathan Sobo
2015-01-07 10:11:55 -07:00
parent 771a60b1bc
commit 462af79d21

View File

@@ -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