mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
9 lines
234 B
Ruby
9 lines
234 B
Ruby
require 'spec_helper'
|
|
|
|
describe PostDetail do
|
|
it { should belong_to :post }
|
|
|
|
it { should validate_presence_of :key }
|
|
it { should validate_presence_of :value }
|
|
it { should validate_uniqueness_of(:key).scoped_to(:post_id) }
|
|
end
|