undefined local variable or method integrate_views Rspec Rails

Jonathon Horsman Oct 13 0 comments

Just upgraded to Rails 3 and Rspec 2? And now when you try and run your tests you get this error:

undefined local variable or method `integrate_views'

That’s an easy one.

For reasons I’ll never fully understand, Rspec 2 is a complete rewrite which doesn’t maintain backwards compatibility with this method call.

The short answer is in each of your controller tests, simply replace integrate_views with render_views.

More details here

Comments //

Nobody has commented yet. Be the first!

Post a comment

  1. optional

Recent Tweets

Blog: The monumental Myspace cock-up:
Tweeted on Friday at 09:43

Awww railsapi, delete some logs:
Tweeted on Wednesday at 16:15