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

@ -8,7 +8,7 @@ FactoryGirl.define do
start_date { Date.today }
end_date { 6.days.from_now }
registration_limit 0
description { CGI.escapeHTML(Faker::Hipster.paragraph) }
description { Faker::Hipster.paragraph }
after(:create) do |conference|
Role.where(name: 'organizer', resource: conference).first_or_create(description: 'For the organizers of the conference (who shall have full access)')

View file

@ -30,6 +30,5 @@ FactoryGirl.define do
event.comment_threads << build(:comment, commentable: event)
end
end
end
end

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

View file

@ -4,7 +4,7 @@ FactoryGirl.define do
factory :sponsor do
name { Faker::Company.name }
website_url { Faker::Internet.url }
description { CGI.escapeHTML(Faker::Lorem.paragraph) }
description { Faker::Lorem.paragraph }
sponsorship_level

View file

@ -2,7 +2,7 @@
FactoryGirl.define do
factory :sponsorship_level do
title { Faker::Hipster.word }
title { Faker::Lorem.word }
conference
end