mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 22:44:10 +08:00
10 lines
267 B
Ruby
10 lines
267 B
Ruby
require 'rails_helper'
|
|
|
|
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
|