diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 9eef239ee..306e0bca5 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -191,6 +191,10 @@ jasmine.unspy = (object, methodName) -> throw new Error("Not a spy") unless object[methodName].hasOwnProperty('originalValue') object[methodName] = object[methodName].originalValue +jasmine.attachToDOM = (element) -> + jasmineContent = document.querySelector('#jasmine-content') + jasmineContent.appendChild(element) unless jasmineContent.contains(element) + addCustomMatchers = (spec) -> spec.addMatchers toBeInstanceOf: (expected) ->