just__matt
just__matt

Reputation: 484

Jasminerice: spec failing because jQuery is not defined

I just installed the gem Jasminerice in a Ruby-on-rails project. Following the instructions on Jasminerice Github I created a spec, started the rails server, and navigated to the /jasmine route.

Although the spec was written to pass, it failed with ReferenceError: jQuery is not defined

Upvotes: 3

Views: 903

Answers (1)

just__matt
just__matt

Reputation: 484

In spec/javascripts/spec.js.coffee

Simply add the line #= require jquery before #= require_tree ./

Upvotes: 4

Related Questions