diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 440ccb025..a6633eafa 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -41,6 +41,14 @@ describe ApplicationHelper do person_image_link(@person).should include(person_path(@person)) end end + + describe "#person_image_tag" do + it "should not allow basic XSS/HTML" do + @person.profile.first_name = "I'm

Evil" + @person.profile.last_name = "I'm

Evil" + person_image_tag(@person).should_not include("

") + end + end describe "markdownify" do describe "autolinks" do