Same here. The error happens when i include ActionView::TestCase::Behavior. I'm using rails 3.1.1. The setup action is called inside the Behavior module itself. So, how do i get access to views in RSpec?