HTML escape Faker::Hipster.paragraph
This commit is contained in:
parent
40562334c7
commit
8fa92b72d1
3 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ FactoryGirl.define do
|
||||||
start_date { Date.today }
|
start_date { Date.today }
|
||||||
end_date { 6.days.from_now }
|
end_date { 6.days.from_now }
|
||||||
registration_limit 0
|
registration_limit 0
|
||||||
description { Faker::Hipster.paragraph }
|
description { CGI.escapeHTML(Faker::Hipster.paragraph) }
|
||||||
|
|
||||||
after(:create) do |conference|
|
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)')
|
Role.where(name: 'organizer', resource: conference).first_or_create(description: 'For the organizers of the conference (who shall have full access)')
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :lodging do
|
factory :lodging do
|
||||||
name { "#{Faker::App.name} Hotel" }
|
name { "#{Faker::App.name} Hotel" }
|
||||||
description { Faker::Lorem.paragraph }
|
description { CGI.escapeHTML(Faker::Lorem.paragraph) }
|
||||||
website_link { Faker::Internet.url }
|
website_link { Faker::Internet.url }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ FactoryGirl.define do
|
||||||
factory :sponsor do
|
factory :sponsor do
|
||||||
name { Faker::Company.name }
|
name { Faker::Company.name }
|
||||||
website_url { Faker::Internet.url }
|
website_url { Faker::Internet.url }
|
||||||
description { Faker::Lorem.paragraph }
|
description { CGI.escapeHTML(Faker::Lorem.paragraph) }
|
||||||
|
|
||||||
sponsorship_level
|
sponsorship_level
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue