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
|
||||
end
|
||||
|
||||
[:binary, :executable, :renderable].each do |attribute|
|
||||
trait(attribute) { send(attribute, true) }
|
||||
trait :binary do
|
||||
binary { true }
|
||||
end
|
||||
|
||||
trait :executable do
|
||||
executable { true }
|
||||
end
|
||||
|
||||
trait :renderable do
|
||||
renderable { true }
|
||||
end
|
||||
|
||||
trait :singleton_file_type do
|
||||
|
Reference in New Issue
Block a user