summaryrefslogtreecommitdiff
path: root/vendor/assets/javascripts/jasmine-jquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/assets/javascripts/jasmine-jquery.js')
-rw-r--r--vendor/assets/javascripts/jasmine-jquery.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/assets/javascripts/jasmine-jquery.js b/vendor/assets/javascripts/jasmine-jquery.js
index 9b7b245009d..a1f1e892c57 100644
--- a/vendor/assets/javascripts/jasmine-jquery.js
+++ b/vendor/assets/javascripts/jasmine-jquery.js
@@ -33,7 +33,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
(function (root, factory) {
if (typeof module !== 'undefined' && module.exports) {
- factory(root, root.jasmine, require('jquery'));
+ // The line below is patched from jquery => jquery/dist/jquery
+ // in order to load a jQuery with ajax, so that this testing library
+ // doesn't break
+ factory(root, root.jasmine, require('jquery/dist/jquery'));
} else {
factory(root, root.jasmine, root.jQuery);
}