On Jan 17, 2011, at 12:40 PM, Joe Van Dyk wrote:

> Is there a way to always use integrate_views for all controller specs?
> I hate having to remember to insert that line into each one.

# rspec-rails-1
Spec::Runner.configure do |c|
  c.integrate_views
end

# rspec-rails-2
# Doc'd on 
http://relishapp.com/rspec/rspec-rails/v/2-4/dir/controller-specs/render-views.
RSpec::configure do |c|
  c.render_views
end

HTH,
David
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to