Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-26 22:01:56 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-02 16:25:44 +0300
commit80d0a2a6d8dccbb9888f9cd4dc3c3e7e208817e6 (patch)
treea74e838bbdc098350b6835a2e073315f25b9251f /spec/models/spam_log_spec.rb
parent64c9768bd6916edfc1e43907ca5e976524b8d51b (diff)
Add model spec for SpamLog
Diffstat (limited to 'spec/models/spam_log_spec.rb')
-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