Displaying 1 result from an estimated 1 matches for "shift_1".
2006 Dec 13
4
RSpec and simply_helpful
..._return(1)
assigns[:shifts] = [@shift]
end
specify "should have a div tag for the shift" do
render ''shifts/index'', :helper => ''simply_helpful''
response.should_have_tag ''div'', :attributes => { :id => ''shift_1'' }
end
end
My template just makes a call like this:
<%= render :partial => @shifts %>
I''ve done some experimentation, and it seems that RSpec''s
implementation of ''render_partial'' is rewriting the partial path
trying to be smart about it but...