I'm trying to run a set of feature specs in PhantomJS using Poltergeist and Rspec. The specs pass normally, but when I switch jQuery to a CDN they fail. Is there a way to get PhantomJS to load external JavaScript libraries?
Failure/Error: visit root_path
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
ReferenceError: Can't find variable: jQuery
ReferenceError: Can't find variable: jQuery
at http://127.0.0.1:60021/assets/application.js:446