mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
We want to link variants/products to external DFC SuppliedProducts to trigger supplier orders when local stock is exhausted. This is the first step to enable the link.
9 lines
205 B
Ruby
9 lines
205 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe SemanticLink, type: :model do
|
|
it { is_expected.to belong_to :variant }
|
|
it { is_expected.to validate_presence_of(:semantic_id) }
|
|
end
|