feat: Portal endpoint (#4633)
This commit is contained in:
12
spec/factories/categories.rb
Normal file
12
spec/factories/categories.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
FactoryBot.define do
|
||||
factory :category, class: 'Category' do
|
||||
portal { portal }
|
||||
name { 'MyString' }
|
||||
description { 'MyText' }
|
||||
position { 1 }
|
||||
|
||||
after(:build) do |category|
|
||||
category.account ||= category.portal.account
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user