Files
openfoodnetwork/spec/models/semantic_link_spec.rb
Maikel Linke d47d3eba8f Add SemanticLink model for variants
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.
2024-03-15 16:46:41 +11:00

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