cartodb-4.42/spec/factories/permissions.rb
2024-04-06 05:25:13 +00:00

10 lines
213 B
Ruby

FactoryGirl.define do
factory :carto_permission, class: Carto::Permission do
after(:build) do |permission|
permission.owner_username = permission.owner.username if permission.owner
end
end
end