Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Error: Sprockets::FileOutsidePaths #4

Closed
evgenyneu opened this issue Feb 22, 2012 · 8 comments
Closed

Error: Sprockets::FileOutsidePaths #4

evgenyneu opened this issue Feb 22, 2012 · 8 comments

Comments

@evgenyneu
Copy link

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?

jasmine.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]
@vjpr
Copy link

vjpr commented Mar 6, 2012

+1

1 similar comment
@imxxb
Copy link

imxxb commented Apr 3, 2012

+1

@dguzzo
Copy link
Contributor

dguzzo commented Jun 5, 2012

argh, i have the reverse problem: a simple

expect(true).toBe(false);

fails in the command line (as expected) but the tests aren't even run in the browser. as the jasmine-rails README says, /specs and command line both read from the same config file, so i dunno what's up.

@OmniaGM
Copy link

OmniaGM commented Aug 28, 2012

+1

@seeflanigan
Copy link
Collaborator

I don't suppose any of you folks are interested in taking over the maintenance of this project?

Any chance one of you has solved this and has a patch they could submit?

@searls
Copy link
Member

searls commented Aug 31, 2012

@dguzzo did you mount an engine to specs in routes.rb? (search the readme for a reference to routes.rb)

Others--apologies but I'm failing to duplicate this. Does anyone have a sample project they can push to demonstrate?

@dguzzo
Copy link
Contributor

dguzzo commented Sep 2, 2012

@searls it was sort of a while ago, but I do recall mounting the engine in routes.rb. And since the mounting instructions are right in the Readme, I highly doubt I overlooked it. but i've since moved on, so at the moment I don't have time to go back and try to repro my issue. will post here again if I get back to it, though.

@searls
Copy link
Member

searls commented Dec 5, 2012

This should now be fixed by the change made in bb23c5a

@searls searls closed this as completed Dec 5, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants