Karma + Rails: File structure? -
when using karma javascript test library (née testacular) rails, should test files , mocked data go placed?
it seems weird have them in /assets/ because don’t want serve them users. (but guess if never precompiled, that’s not actual problem, right?)
via post: https://groups.google.com/forum/#!topic/angular/mg8yjkwbej8
i'm experimenting looks this:
// list of files / patterns load in browser files: [ 'http://localhost:3000/assets/application.js', 'spec/javascripts/*_spec.coffee', { pattern: 'app/assets/javascripts/*.{js,coffee}', watched: true, included: false, served: false } ],
it watches app js files, doesn't include them or serve them, instead including application.js served rails , sprockets.
i've been fiddling https://github.com/lucaong/sprockets-chain , haven't found way use requirejs include js files within gems (such jquery-rails or angularjs-rails).
Comments
Post a Comment