[rspec-users] running rspec in spec/requests directory with cells fails

Jim Morris wolfmanjm at gmail.com
Wed Dec 22 03:51:53 EST 2010

Hi, not exactly sure if this is a cells bug or an rspec (or both), but
when running a simple request spec
from the spec/requests directory gets an error whereas running it from
the RAILS ROOT directory it works..
Seems it cannot find the view in the cells directory.

The full project is in https://github.com/wolfmanjm/wolfmanblog_rails.
Using rails 3.0.3 and rspec-rails 2.2.1

> cd spec/request
> rspec basics_spec.rb

[sequel] Setting up the "test" environment:


  1) Basic tests works! (now write some real specs)
     Failure/Error: visit "/"
     Missing template cell/rails/google_search with
{:locale=>[:en, :en], :handlers=>[:haml, :rjs, :rhtml, :rxml, :erb, :builder], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json]}
in view paths "/home/morris/work/ruby/rails3/wolfmanblog/spec/requests/
app/cells", "/home/morris/work/ruby/rails3/wolfmanblog/spec/requests/
app/cells/layouts" and possible paths sidebar/google_searchcell/rails/
     # /home/morris/work/ruby/rails3/wolfmanblog/app/cells/
sidebar_cell.rb:8:in `google_search'
     # /home/morris/work/ruby/rails3/wolfmanblog/app/helpers/
application_helper.rb:3:in `sidebar'
     # /home/morris/work/ruby/rails3/wolfmanblog/app/views/layouts/
     # ./basics_spec.rb:5

Finished in 0.14442 seconds
1 example, 1 failure

More information about the rspec-users mailing list