One note on the way `context` is being used in these specs: often the description of a `context` will include "when" in the description, so a description on this `context` more along the lines of "when the comments are hidden" might make more sense.  


On Tuesday, February 19, 2013 at 6:57 PM, pozorvlak wrote:

> In spec/views/posts/_single.html.haml_spec.rb:
> > + > + it "renders the number of comments" do > + rendered.should contain "2 comments" > + end > + end > + > + context "hide comment" do > + before(:each) do > + @comment = FactoryGirl.create(:comment, :post => @post) > + render :partial => "single", :locals => { > + :post => @post, :hide_comments => true > + } > + end > + > + it "renders no value of comments" do > + rendered.should_not contain "1 comment"  
> Easily done :-)
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/Growstuff/growstuff/pull/113/files#r3072809).  
>  
>  
>