Created
January 28, 2016 11:28
-
-
Save beliar91/4cc516ffb387d93e68bb to your computer and use it in GitHub Desktop.
spec/factories/tasks.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :task do |t| | |
t.status "Created" | |
t.completion_time 10 | |
factory :task_created_1 do |t| | |
t.status "Created" | |
t.completion_time 90 | |
end | |
factory :task_created_2 do |t| | |
t.status "Created" | |
t.completion_time 20 | |
end | |
factory :task_in_progress_1 do |t| | |
t.status "In Progress" | |
t.completion_time 30 | |
end | |
factory :task_in_progress_2 do |t| | |
t.status "In Progress" | |
t.completion_time 60 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment