feat: Category API to handle linked categories and parent-sub categories (#4879)
This commit is contained in:
8
spec/models/related_category_spec.rb
Normal file
8
spec/models/related_category_spec.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe RelatedCategory, type: :model do
|
||||
describe 'associations' do
|
||||
it { is_expected.to belong_to(:category) }
|
||||
it { is_expected.to belong_to(:related_category) }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user