First tests in rspec, with factory_girl

This commit is contained in:
Henne Vogelsang 2014-04-09 01:32:47 +02:00
parent accd7d1a58
commit e3fd0c195a
11 changed files with 131 additions and 19 deletions

View file

@ -0,0 +1,10 @@
# 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"
end
end