Create three traits in FactoryBot to prevent deprecation warning
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
This commit is contained in:
@ -190,8 +190,16 @@ FactoryBot.define do
|
|||||||
singleton_file_type
|
singleton_file_type
|
||||||
end
|
end
|
||||||
|
|
||||||
[:binary, :executable, :renderable].each do |attribute|
|
trait :binary do
|
||||||
trait(attribute) { send(attribute, true) }
|
binary { true }
|
||||||
|
end
|
||||||
|
|
||||||
|
trait :executable do
|
||||||
|
executable { true }
|
||||||
|
end
|
||||||
|
|
||||||
|
trait :renderable do
|
||||||
|
renderable { true }
|
||||||
end
|
end
|
||||||
|
|
||||||
trait :singleton_file_type do
|
trait :singleton_file_type do
|
||||||
|
Reference in New Issue
Block a user