diff --git a/spec/factories/conferences.rb b/spec/factories/conferences.rb index c7c07bb8..3bd59f64 100644 --- a/spec/factories/conferences.rb +++ b/spec/factories/conferences.rb @@ -8,7 +8,7 @@ FactoryGirl.define do start_date { Date.today } end_date { 6.days.from_now } registration_limit 0 - description { Faker::Hipster.paragraph } + description { CGI.escapeHTML(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)') diff --git a/spec/factories/lodgings.rb b/spec/factories/lodgings.rb index 636d9060..73ceeefa 100644 --- a/spec/factories/lodgings.rb +++ b/spec/factories/lodgings.rb @@ -3,7 +3,7 @@ FactoryGirl.define do factory :lodging do name { "#{Faker::App.name} Hotel" } - description { Faker::Lorem.paragraph } + description { CGI.escapeHTML(Faker::Lorem.paragraph) } website_link { Faker::Internet.url } end end diff --git a/spec/factories/sponsors.rb b/spec/factories/sponsors.rb index dd074ab3..edf1bf16 100644 --- a/spec/factories/sponsors.rb +++ b/spec/factories/sponsors.rb @@ -4,7 +4,7 @@ FactoryGirl.define do factory :sponsor do name { Faker::Company.name } website_url { Faker::Internet.url } - description { Faker::Lorem.paragraph } + description { CGI.escapeHTML(Faker::Lorem.paragraph) } sponsorship_level