searls/jasmine-rails — Issue #1: jasmine_rails/application.js won't compile because of missing prototype.js
Author: meryn
Created: 2011-12-18 17:41:52+00:00
State: open

When trying to load http://localhost:3000/specs as per instructions in the README, I get this in my Rails server log:

```
2011-Dec-18 17:46:49 +0100 []: Error compiling asset jasmine_rails/application.js:

2011-Dec-18 17:46:49 +0100 []: Sprockets::FileOutsidePaths: {{local app path}}/public/javascripts/prototype.js isn't in paths: {{complete sprocket search path}}
```

I could fix this by installing the prototype-rails gem, which makes prototype.js (amongst other files) available in the search path. But I guess I shouldn't need to.

I currently have zero Jasmine tests, so I can't really say if everything is working, but the base UI at http://localhost:3000/specs now loads up fine.

Interesting thing is that the log says jasmine_rails/application.js was compiled (sucessfully?) before.
All log messages generated by the request follow:

```
2011-Dec-18 17:46:48 +0100 []: Started GET "/specs" for 127.0.0.1 at 2011-12-18 17:46:48 +0100
2011-Dec-18 17:46:48 +0100 [action_controller]: Processing by JasmineRails::SpecRunnerController#index as HTML
2011-Dec-18 17:46:48 +0100 [action_view]: Rendered /Users/meryn/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-rails-0.0.2/app/views/jasmine_rails/spec_runner/index.html.erb within layouts/jasmine_rails/spec_runner (0.3ms)

2011-Dec-18 17:46:48 +0100 []: Compiled jasmine_rails/application.css (3ms) (pid 3280)

2011-Dec-18 17:46:48 +0100 []: Compiled jasmine.css (0ms) (pid 3280)

2011-Dec-18 17:46:48 +0100 []: Compiled jasmine_rails/application.js (12ms) (pid 3280)

2011-Dec-18 17:46:48 +0100 []: Compiled jasmine.js (0ms) (pid 3280)

2011-Dec-18 17:46:48 +0100 []: Compiled jasmine-html.js (0ms) (pid 3280)

2011-Dec-18 17:46:48 +0100 []: Compiled json2.js (2ms) (pid 3280)
2011-Dec-18 17:46:48 +0100 [action_controller]: Completed 200 OK in 91ms (Views: 78.6ms | ActiveRecord: 0.0ms)

2011-Dec-18 17:46:49 +0100 []: Started GET "/assets/jasmine_rails/application.css?body=1" for 127.0.0.1 at 2011-12-18 17:46:49 +0100

2011-Dec-18 17:46:49 +0100 []: Served asset /jasmine_rails/application.css - 200 OK (0ms)

2011-Dec-18 17:46:49 +0100 []: Started GET "/assets/jasmine.css?body=1" for 127.0.0.1 at 2011-12-18 17:46:49 +0100

2011-Dec-18 17:46:49 +0100 []: Compiled jasmine.css (0ms) (pid 3280)

2011-Dec-18 17:46:49 +0100 []: Served asset /jasmine.css - 200 OK (46ms)

2011-Dec-18 17:46:49 +0100 []: Started GET "/assets/jasmine_rails/application.js" for 127.0.0.1 at 2011-12-18 17:46:49 +0100

2011-Dec-18 17:46:49 +0100 []: Compiled jasmine_rails/application.js (12ms) (pid 3280)

2011-Dec-18 17:46:49 +0100 []: Error compiling asset jasmine_rails/application.js:

2011-Dec-18 17:46:49 +0100 []: Sprockets::FileOutsidePaths: {{local app path}}/public/javascripts/prototype.js isn't in paths: {{complete sprocket search path}}

2011-Dec-18 17:46:49 +0100 []: Served asset /jasmine_rails/application.js - 500 Internal Server Error
```