On Jul 10, 2011, at 4:47 PM, Leigh Daniels wrote:

> Thanks, Conrad.
> 
> I'm all green now!
> 
> **Leigh
> 
> On Sun, Jul 10, 2011, Conrad Taylor <conra...@gmail.com> wrote:
> 
>> Leigh, you're controller spec appear to be missing a call to the following:
>> 
>> render_views

Leigh, Conrad,

Without render_views, an empty stub template is rendered, so unless you're 
adding specs for content in the template, you shouldn't need render_views for 
the generated specs to pass as/is.

The following script results in passing specs for me (ruby 1.9.2 and 1.8.7 with 
clean gemsets in rvm, Mac OS X):

gem install rails -v 3.1.0.rc4
rails new example
cd example
echo 'gem "rspec-rails", "~> 2.6.0", :group => [:development, :test]' >> Gemfile
bundle install
rails generate rspec:install
rails generate scaffold jobs
rake db:migrate
rake db:test:prepare
rspec spec/controllers

What environment are you working in?

Cheers,
David



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to