feat: Portal endpoint (#4633)

This commit is contained in:
Tejaswini Chile
2022-05-16 13:59:59 +05:30
committed by GitHub
parent 6535624cd6
commit 938fb887c4
39 changed files with 198 additions and 132 deletions

View 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