searls/jasmine-rails — Issue #4: Error: Sprockets::FileOutsidePaths
Author: evgenyneu
Created: 2012-02-22 06:51:29+00:00
State: open

Hello,

After setting the `src_dir` in in jasmine.yml, it shows the following error in browsers (/specs). The tests work fine from command line: `bundle exec jasmine-headless-webkit`. How can I make it work from both command line and browser?

jsmine.yml

```yml
src_files:
- "mobile_application.js"
...
src_dir: app/assets/javascripts
```

Error in browser:

```
Error: Sprockets::FileOutsidePaths: /home/evgeny/web/digitalsafe/mobile_application.js isn't in paths: /home/evgeny/web/digitalsafe/spec/javascripts, /home/evgeny/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/jasmine-core-1.1.0/lib/jasmine-core, /home/evgeny/web/digitalsafe/app/assets/images, /home/evgeny/web/digitalsafe/app/assets/javascripts, /home/evgeny/web/digitalsafe/app/assets/stylesheets, /home/evgeny/web/digitalsafe/vendor/assets/stylesheets, /home/evgeny/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/jasmine-rails-0.0.3/app/assets/javascripts, /home/evgeny/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/jasmine-rails-0.0.3/app/assets/stylesheets, /home/evgeny/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/jquery-rails-1.0.19/vendor/assets/javascripts, /home/evgeny/web/digitalsafe/app/assets/javascripts [http://localhost:3000/assets/jasmine_rails/application.js:1]
ReferenceError: jasmine is not defined [http://localhost:3000/specs:15]
```