Re: [jasmine-js] Handlebars / Ember.js assets with Jasmine

128 views
Skip to first unread message

Davis W. Frank

unread,
Mar 29, 2013, 11:52:32 AM3/29/13
to jasmi...@googlegroups.com
the src_files section of jasmine.yml needs to have all of the asset packages you're hosting from your Rails app. Right now Jasmine is only trying to look for your application.js file.  Add lib.js and see if that gets your files loaded.

--dwf


On Fri, Mar 29, 2013 at 5:00 AM, Jonathan Evans <jonathan....@gmail.com> wrote:
Hi,

I am attempting to set up jasmine to test an ember application but I keep getting the following error on running jasmine:

[jasmine-headless-webkit] couldn't find file 'handlebars'
  (in /Users/jon/Desktop/coursify/lib/assets/javascripts/lib.js:1) (Sprockets::FileNotFound)

The ember-rails gem is in my gemfile which in turn has the ember-source and handlebars-source gems which add the assets to lib. Any idea where am I going wrong?

spec/javascripts/support/jasmine.yml:

src_files:
 - "application.{js,coffee}"

stylesheets:

helpers:
  - "helpers/**/*.{js,coffee}"

spec_files:
  - "**/*[Ss]pec.{js,coffee}"

src_dir: "app/assets/javascripts"

spec_dir: spec/javascripts

asset_paths:
 - "vendor/assets/javascripts"
 - "lib/assets/javascripts"


lib/assets/javascripts/lib.js

//= require handlebars
//= require ember
//= require ember-data
//= require_tree .

Cheers,

Jon

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
thx,
--dwf
Reply all
Reply to author
Forward
0 new messages