Closed tygriffin closed 10 years ago
In spec_helper.js requiring files individually works fine, but require_tree doesn't.
spec_helper.js
require_tree
Works:
//= require lesson_notes/angular/vendor/angular-pageslide-directive
Doesn't work:
//= require_tree lesson_notes/angular/vendor
I'm using the latest version of Teaspoon in a Rails 4.1 engine.
man, this is old. but since you never closed it I assume you just abandoned it. obviously, per the rails docs, and the error that you likely saw, require_tree needs a relative path.
In
spec_helper.js
requiring files individually works fine, butrequire_tree
doesn't.Works:
//= require lesson_notes/angular/vendor/angular-pageslide-directive
Doesn't work:
//= require_tree lesson_notes/angular/vendor
I'm using the latest version of Teaspoon in a Rails 4.1 engine.