mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 10:24:22 +01:00
get the first cucumber feature running: calendar
This commit is contained in:
parent
393eae1937
commit
c9d64e6f4b
28 changed files with 400 additions and 418 deletions
23
features/support/factories/factories.rb
Normal file
23
features/support/factories/factories.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue