2013-02-05 14:16:51 -05:00
|
|
|
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 }
|
2013-06-25 00:18:54 -04:00
|
|
|
it { should validate_presence_of :ip_address }
|
2013-02-05 14:16:51 -05:00
|
|
|
it { should validate_presence_of :viewed_at }
|
|
|
|
|
|
|
|
|
|
|
|
end
|