Add model spec for SpamLog
This commit is contained in:
parent
64c9768bd6
commit
80d0a2a6d8
1 changed files with 11 additions and 0 deletions
11
spec/models/spam_log_spec.rb
Normal file
11
spec/models/spam_log_spec.rb
Normal 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
|
Loading…
Reference in a new issue