undefined local variable or method integrate_views Rspec Rails

Published 13 October 2010

Just upgraded to Rails 3 and Rspec 2? And now when you try and run your tests you get this error:\r\n\r\n@@@\r\nundefined local variable or method `integrate_views’\r\n@@@\r\n\r\nThat’s an easy one.\r\n\r\nFor reasons I’ll never fully understand, Rspec 2 is a complete rewrite which doesn’t maintain backwards compatibility with this method call.\r\n\r\nThe short answer is in each of your controller tests, simply replace integrate_views with render_views.\r\n\r\n\More details here\