cartodb/spec/factories/permissions.rb

10 lines
213 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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