Escape HTML some factory strings
This commit is contained in:
parent
ad0a8eecf2
commit
45bd31fad0
12 changed files with 21 additions and 22 deletions
|
|
@ -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)')
|
||||
|
|
|
|||
|
|
@ -30,6 +30,5 @@ FactoryGirl.define do
|
|||
event.comment_threads << build(:comment, commentable: event)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :sponsorship_level do
|
||||
title { Faker::Hipster.word }
|
||||
title { Faker::Lorem.word }
|
||||
|
||||
conference
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue