feat: Category API to handle linked categories and parent-sub categories (#4879)
This commit is contained in:
@@ -9,8 +9,10 @@ RSpec.describe Category, type: :model do
|
||||
describe 'associations' do
|
||||
it { is_expected.to belong_to(:account) }
|
||||
it { is_expected.to belong_to(:portal) }
|
||||
it { is_expected.to have_many(:folders) }
|
||||
it { is_expected.to have_many(:articles) }
|
||||
it { is_expected.to have_many(:sub_categories) }
|
||||
it { is_expected.to have_many(:linked_categories) }
|
||||
it { is_expected.to have_many(:related_categories) }
|
||||
end
|
||||
|
||||
describe 'search' do
|
||||
|
||||
Reference in New Issue
Block a user