Add model spec for SpamLog

This commit is contained in:
Douglas Barbosa Alexandre 2016-01-26 17:01:56 -02:00
parent 64c9768bd6
commit 80d0a2a6d8

View file

@ -0,0 +1,11 @@
require 'spec_helper'
describe SpamLog, models: true do
describe 'associations' do
it { is_expected.to belong_to(:user) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:user) }
end
end