cartodb-4.29/spec/factories/permissions.rb
2020-06-15 10:58:47 +08: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