bradphelan / jasminerice

Pain free coffeescript testing under Rails 3.1
478 stars 113 forks source link

ActionView Missing Template from simply the example spec #112

Open brandonparsons opened 11 years ago

brandonparsons commented 11 years ago

I've done the basic install of jasmine rice (with the generator) and get this error every time I run my specs:

 ActionView::MissingTemplate - Missing template spec/javascripts/fixtures/example_fixture with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
06:17:54 logs.1  |   * "/Users/brandon/Documents/code/chat"
06:17:54 logs.1  |   * "/Users/brandon/Documents/code/chat/app/views"
06:17:54 logs.1  |   * "/Users/brandon/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/jasminerice-b5370e3cf293/app/views"
06:17:54 logs.1  |   * "/Users/brandon/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/devise-fdd47d74dbf2/app/views"
06:17:54 logs.1  |   * "/Users/brandon/Documents/code/chat"
06:17:54 logs.1  |   * "/"

The tests currently pass with that happening, as I suppose I'm not checking anything in the fixture.

Don't know why it's not looking in the correct spot for the fixture. I haven't changed the .yml config file, or the fixture location.

I am using Rails 4.

brandonparsons commented 11 years ago

Never mind. Figured out that your fixtures were assuming I'm using HAML in my project. Normally I do, but not in this one.....

Not a great decision I think (and should be documented somewhere, or included as a dependency).

nmccready commented 10 years ago

I am looking for this code setting to override it in the config section (if possible) .