cartodb-4.42/spec/factories/permissions.rb

10 lines
213 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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