Merge c4e0a5312e into be33f345a1
This commit is contained in:
commit
9b10a68ea7
6 changed files with 7 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :conference do
|
||||
title { Faker::Book.title }
|
||||
title { CGI.escapeHTML(Faker::Book.title) }
|
||||
short_title { SecureRandom.urlsafe_base64(4) }
|
||||
timezone { Faker::Address.time_zone }
|
||||
start_date { Date.today }
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :event do
|
||||
title { Faker::Hipster.sentence }
|
||||
abstract { Faker::Hipster.paragraph(2) }
|
||||
title { CGI.escapeHTML(Faker::Hipster.sentence) }
|
||||
abstract { CGI.escapeHTML(Faker::Hipster.paragraph(2)) }
|
||||
|
||||
program
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :sponsor do
|
||||
name { Faker::Company.name }
|
||||
name { CGI.escapeHTML(Faker::Company.name) }
|
||||
website_url { Faker::Internet.url }
|
||||
description { Faker::Lorem.paragraph }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
FactoryGirl.define do
|
||||
factory :ticket do
|
||||
title { "#{Faker::Hipster.word} Ticket" }
|
||||
title { CGI.escapeHTML("#{Faker::Hipster.word} Ticket") }
|
||||
price_cents 1000
|
||||
price_currency 'USD'
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
FactoryGirl.define do
|
||||
factory :track do
|
||||
name { Faker::Commerce.department(2, true) }
|
||||
name { CGI.escapeHTML(Faker::Commerce.department(2, true)) }
|
||||
description { Faker::Lorem.sentence }
|
||||
color { Faker::Color.hex_color }
|
||||
program
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
FactoryGirl.define do
|
||||
factory :venue do
|
||||
name { "#{Faker::Company.name} Office" }
|
||||
name { CGI.escapeHTML("#{Faker::Company.name} Office") }
|
||||
street { Faker::Address.street_address }
|
||||
city { Faker::Address.city }
|
||||
postalcode { Faker::Address.postcode }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue