discourse/spec/models/post_detail_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
280 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe PostDetail do
it { is_expected.to belong_to :post }
it { is_expected.to validate_presence_of :key }
it { is_expected.to validate_presence_of :value }
it { is_expected.to validate_uniqueness_of(:key).scoped_to(:post_id) }
end