mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
13 lines
300 B
Ruby
13 lines
300 B
Ruby
require 'spec_helper'
|
|
|
|
describe View do
|
|
|
|
it { should belong_to :parent }
|
|
it { should belong_to :user }
|
|
it { should validate_presence_of :parent_type }
|
|
it { should validate_presence_of :parent_id }
|
|
it { should validate_presence_of :ip }
|
|
it { should validate_presence_of :viewed_at }
|
|
|
|
|
|
end
|