Files
discourse/spec/models/post_detail_spec.rb
T

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

12 lines
298 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'rails_helper'
describe PostDetail do
2014-12-31 11:55:03 -03:00
it { is_expected.to belong_to :post }
2014-12-31 11:55:03 -03:00
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