woke factory girl
This commit is contained in:
@@ -4,13 +4,13 @@ FactoryBot.define do
|
||||
association :user
|
||||
association :supplier #TODO warning! this may create a different supplier than the one created by the associated table
|
||||
trait :placed do
|
||||
state 'placed'
|
||||
state { 'placed' }
|
||||
end
|
||||
trait :active do
|
||||
state 'active'
|
||||
state { 'active' }
|
||||
end
|
||||
trait :cancelled do
|
||||
state 'cancelled'
|
||||
state { 'cancelled' }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user