committed by
Sojan Jose
parent
19b4311e8b
commit
96f8070e79
@@ -22,5 +22,9 @@ FactoryBot.define do
|
||||
trait :with_avatar do
|
||||
avatar { Rack::Test::UploadedFile.new('spec/assets/avatar.png', 'image/png') }
|
||||
end
|
||||
|
||||
trait :administrator do
|
||||
role { 'administrator' }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user