I am using Rails 2.3.4 and Rspec 1.2.0. I am trying to check an assistant who is trying to display a page or partial, I get an exception like
undefined `render 'method for
Suppose my helper method
def some_helper render(:partial => "some/partial", :locals => {:some => some} end
and calling it a specification
it "should render the partial" do some_helper.should render_template("some/partial") end
Any suggestion would be helpful
source share