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

@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kbase_article, class: 'Kbase::Article' do
factory :article, class: 'Article' do
account_id { 1 }
category_id { 1 }
folder_id { 1 }

View File

@@ -1,6 +1,6 @@
FactoryBot.define do
factory :kbase_category, class: 'Kbase::Category' do
portal { kbase_portal }
factory :category, class: 'Category' do
portal { portal }
name { 'MyString' }
description { 'MyText' }
position { 1 }

View File

@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kbase_folder, class: 'Kbase::Folder' do
factory :folder, class: 'Folder' do
account_id { 1 }
name { 'MyString' }
description { 'MyText' }

View File

@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kbase_portal, class: 'Kbase::Portal' do
factory :portal, class: 'Portal' do
account
name { Faker::Book.name }
slug { SecureRandom.hex }