Style factories. Trigger houndci

This commit is contained in:
KalabiYau 2014-04-27 17:52:39 +02:00
parent 08d4bb848b
commit ff6cfa8424
3 changed files with 9 additions and 15 deletions

View file

@ -1,10 +1,8 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do FactoryGirl.define do
factory :call_for_papers do factory :call_for_papers do
start_date Date.today - 1 start_date Date.today - 1
end_date Date.today + 7 end_date Date.today + 7
hard_deadline Date.today + 8 hard_deadline Date.today + 8
description "We call for papers" description 'We call for papers'
end end
end end

View file

@ -1,12 +1,10 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do FactoryGirl.define do
factory :conference do factory :conference do
title "The dog and pony show" title 'The dog and pony show'
short_title "dps14" short_title 'dps14'
social_tag "dps14" social_tag 'dps14'
timezone "Amsterdam" timezone 'Amsterdam'
contact_email "admin@example.com" contact_email 'admin@example.com'
start_date Date.today start_date Date.today
end_date Date.tomorrow end_date Date.tomorrow
end end

View file

@ -1,5 +1,3 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do FactoryGirl.define do
factory :user do factory :user do
email 'example@example.com' email 'example@example.com'