Displaying 1 result from an estimated 1 matches for "signup_propaganda".
2007 Oct 01
15
how to spec views
...admin, player
So I I''ll write if conditionals in the view with the partials
it "should render signup propaganda for annon users trying to view games"
do
render "/games/index.rhtml"
@logged_in?.should eql(false)
response.should render_template(''_signup_propaganda'')
end
Now for my partial I know it''ll be wrapped all in a div with a
class="signup_propaganda"
Should I be testing for that instead? Can I write expectations for partials
similar to above?
When your specing views are you testing for the outputted results?
it "...