Displaying 1 result from an estimated 1 matches for "apple_98".
Did you mean:
apple_99
2007 Sep 08
3
template.expects_render?
...supposed to be added to 1.0.6. Am I wrong? Or am I missing something
crucial about the usage?
Thanks,
Leslie
Below is my view spec:
require File.dirname(__FILE__) + ''/../../spec_helper''
describe "/apples/index.rhtml" do
include ApplesHelper
before do
apple_98 = mock_model(Apple)
apple_99 = mock_model(Apple)
assigns[:apples] = [apple_98, apple_99]
end
it "should render list of apples" do
template.should_render(:partial => ''apples/apple'')
render "/apples/index.rhtml"
end
end