Files
openfoodnetwork/spec/models/semantic_link_spec.rb
Maikel Linke 1ce0b25bb0 Switch SemanticLink to use new association
And ActiveRecord magic does the rest when used correctly.
2024-11-19 15:53:58 +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 :subject }
it { is_expected.to validate_presence_of(:semantic_id) }
end