diff --git a/app/helpers/people_helper.rb b/app/helpers/people_helper.rb index f40bc0821..ef751f1c5 100644 --- a/app/helpers/people_helper.rb +++ b/app/helpers/people_helper.rb @@ -39,8 +39,10 @@ module PeopleHelper " @person) - last_post_link(@person).should include last_post_person_path(@person.to_param) + last_visible_post_for(@person).should be_blank + end + + it "shows the link, if the person has at least one visible post" do + post = FactoryGirl.create(:status_message, :author => @person, :public => true) + last_visible_post_for(@person).should include last_post_person_path(@person.to_param) end end