get the first cucumber feature running: calendar

This commit is contained in:
Reinier Balt 2012-04-30 13:51:42 +02:00
parent 393eae1937
commit c9d64e6f4b
28 changed files with 400 additions and 418 deletions

View file

@ -0,0 +1,23 @@
FactoryGirl.define do
factory :user do
sequence(:login) { |n| "testuser#{n}" }
password "secret"
password_confirmation { |user| user.password }
is_admin false
end
factory :context do
sequence(:name) { |n| "testcontext#{n}" }
hide false
created_at Time.now.utc
end
factory :project do
sequence(:name) { |n| "testproject#{n}" }
end
factory :todo do
sequence(:description) { |n| "testtodo#{n}" }
association :context
end
end