discourse/spec/models/view_spec.rb

14 lines
300 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06: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 }
it { should validate_presence_of :ip }
it { should validate_presence_of :viewed_at }
end