From ff6cfa8424a7b0b24426be21ddf13997b43e4d87 Mon Sep 17 00:00:00 2001 From: KalabiYau Date: Sun, 27 Apr 2014 17:52:39 +0200 Subject: [PATCH 1/2] Style factories. Trigger houndci --- spec/factories/call_for_papers.rb | 10 ++++------ spec/factories/conferences.rb | 12 +++++------- spec/factories/users.rb | 2 -- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/spec/factories/call_for_papers.rb b/spec/factories/call_for_papers.rb index 9da6c7fd..114defb2 100644 --- a/spec/factories/call_for_papers.rb +++ b/spec/factories/call_for_papers.rb @@ -1,10 +1,8 @@ -# Read about factories at https://github.com/thoughtbot/factory_girl - FactoryGirl.define do factory :call_for_papers do - start_date Date.today - 1 - end_date Date.today + 7 - hard_deadline Date.today + 8 - description "We call for papers" + start_date Date.today - 1 + end_date Date.today + 7 + hard_deadline Date.today + 8 + description 'We call for papers' end end diff --git a/spec/factories/conferences.rb b/spec/factories/conferences.rb index 5438da2b..5f18a86c 100644 --- a/spec/factories/conferences.rb +++ b/spec/factories/conferences.rb @@ -1,12 +1,10 @@ -# Read about factories at https://github.com/thoughtbot/factory_girl - FactoryGirl.define do factory :conference do - title "The dog and pony show" - short_title "dps14" - social_tag "dps14" - timezone "Amsterdam" - contact_email "admin@example.com" + title 'The dog and pony show' + short_title 'dps14' + social_tag 'dps14' + timezone 'Amsterdam' + contact_email 'admin@example.com' start_date Date.today end_date Date.tomorrow end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 0334d49e..79f9445f 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,5 +1,3 @@ -# Read about factories at https://github.com/thoughtbot/factory_girl - FactoryGirl.define do factory :user do email 'example@example.com' From 8eb6a3b45b0a78dd0fd1cdccb151ab1f8b02feec Mon Sep 17 00:00:00 2001 From: Artem Chernikov Date: Wed, 30 Apr 2014 14:48:20 +0200 Subject: [PATCH 2/2] Put links to factories readme back --- spec/factories/call_for_papers.rb | 2 ++ spec/factories/conferences.rb | 2 ++ spec/factories/users.rb | 2 ++ 3 files changed, 6 insertions(+) diff --git a/spec/factories/call_for_papers.rb b/spec/factories/call_for_papers.rb index 114defb2..eba5dc9e 100644 --- a/spec/factories/call_for_papers.rb +++ b/spec/factories/call_for_papers.rb @@ -1,3 +1,5 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + FactoryGirl.define do factory :call_for_papers do start_date Date.today - 1 diff --git a/spec/factories/conferences.rb b/spec/factories/conferences.rb index 5f18a86c..4479e678 100644 --- a/spec/factories/conferences.rb +++ b/spec/factories/conferences.rb @@ -1,3 +1,5 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + FactoryGirl.define do factory :conference do title 'The dog and pony show' diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 79f9445f..0334d49e 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,3 +1,5 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + FactoryGirl.define do factory :user do email 'example@example.com'