Chad, thank you for looking over my crappy code; I greatly appreciate your
feedback! I made changes accordingly and submitted a pull request.

-Kevin


On Fri, Oct 18, 2013 at 4:30 PM, Chad Pytel <notifications@github.com>wrote:

> In spec/features/user_submits_comment_spec.rb:
>
> > +  As a user
> > +  I want to browse designs
> > +  So that I can find ones I'm interested in
> > +} do
> > +
> > +  context 'user logged-in' do
> > +
> > +    let(:user) { FactoryGirl.create(:user) }
> > +
> > +    before :each do
> > +      sign_in_as user
> > +    end
> > +
> > +    scenario 'user submit valid comment' do
> > +      design = FactoryGirl.create(:design, :with_image)
> > +      prev_count = design.comments.count
>
> You generally don't need to do this kind of number check in an integration
> spec. The comment appeared on the page, so we can assume it was saved
> properly.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/kevinquach/threepo/pull/2/files#r7073122>
> .
>



-- 
Kevin