summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-26 17:01:56 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-02 11:25:44 -0200
commit80d0a2a6d8dccbb9888f9cd4dc3c3e7e208817e6 (patch)
treea74e838bbdc098350b6835a2e073315f25b9251f
parent64c9768bd6916edfc1e43907ca5e976524b8d51b (diff)
downloadgitlab-ce-80d0a2a6d8dccbb9888f9cd4dc3c3e7e208817e6.tar.gz
Add model spec for SpamLog
-rw-r--r--spec/models/spam_log_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/spam_log_spec.rb b/spec/models/spam_log_spec.rb
new file mode 100644
index 00000000000..076f3e44c70
--- /dev/null
+++ b/spec/models/spam_log_spec.rb
@@ -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