Escape HTML some factory strings

This commit is contained in:
Henne Vogelsang 2016-05-02 17:39:06 +02:00
parent ad0a8eecf2
commit 45bd31fad0
12 changed files with 21 additions and 22 deletions

View file

@ -3,7 +3,7 @@
FactoryGirl.define do
factory :lodging do
name { "#{Faker::App.name} Hotel" }
description { CGI.escapeHTML(Faker::Lorem.paragraph) }
description { Faker::Lorem.paragraph }
website_link { Faker::Internet.url }
end
end