It's because you were creating a comment associated with another link. You needed this:

comment_2 = FactoryGirl.create(:comment, link:@link)

referencing the variable @link