diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index d588db713..d494abfca 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -2,7 +2,7 @@ require 'window' window.setUpEnvironment() nakedLoad 'jasmine-jquery' -$ = require 'jquery' +$ = jQuery = require 'jquery' _ = require 'underscore' Keymap = require 'keymap' Config = require 'config' diff --git a/vendor/jasmine-jquery.js b/vendor/jasmine-jquery.js index e1cafb895..c74a962fa 100644 --- a/vendor/jasmine-jquery.js +++ b/vendor/jasmine-jquery.js @@ -1,4 +1,5 @@ -jQuery = require('jquery'); +(function(jQuery) { + jasmine.JQuery = function() {}; jasmine.JQuery.browserTagCaseIndependentHtml = function(html) { @@ -174,4 +175,4 @@ beforeEach(function() { afterEach(function() { jasmine.JQuery.events.cleanUp(); }); - +})(require('jquery'));