Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jst route returns 500 with rspec #231

Open
vishl opened this issue May 3, 2012 · 0 comments
Open

jst route returns 500 with rspec #231

vishl opened this issue May 3, 2012 · 0 comments

Comments

@vishl
Copy link

vishl commented May 3, 2012

When I run a test with rspec, fetching assets/.jst returns 500. The error appears to be in the router, but I am not able to track down the actual error. My log file only shows

Started GET "/" for 127.0.0.1 at 2012-05-03 12:09:01 -0700
  Processing by PagesController#app as HTML
mobile_param: , mobile: 
Rendered pages/app.html.haml (853.1ms)
Completed 200 OK in 905ms (Views: 900.4ms | ActiveRecord: 2.2ms)


Started GET "/assets/app.jst" for 127.0.0.1 at 2012-05-03 12:09:03 -0700

Note that this works fine if I start my rails server with the test environment. It is only an issue when running rspec.

As a workaround, I added this line to my routes file and it appears to work:

  match "assets/:package.:extension", :to=>'jammit#package'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant