mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
14 lines
355 B
Ruby
14 lines
355 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe AdjustmentMetadata do
|
|
it { is_expected.to belong_to(:adjustment).required }
|
|
it { is_expected.to belong_to(:enterprise).required }
|
|
|
|
it "is valid when built from factory" do
|
|
adjustment_metadata = build(:adjustment_metadata)
|
|
expect(adjustment_metadata).to be_valid
|
|
end
|
|
end
|