summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-26 17:07:35 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-26 23:24:25 +0100
commit0dab083702ff4364bc25ea29812a4305c58e5a4f (patch)
tree655020da5c2c0266af15838a559702eb3a7aebf2
parent89ea6a9931bb232bd391ff4dace6e13deb6dee0c (diff)
downloadgitlab-ce-0dab083702ff4364bc25ea29812a4305c58e5a4f.tar.gz
Add Callout specs
-rw-r--r--spec/factories/callouts.rb8
-rw-r--r--spec/models/callout_spec.rb9
2 files changed, 17 insertions, 0 deletions
diff --git a/spec/factories/callouts.rb b/spec/factories/callouts.rb
new file mode 100644
index 00000000000..b8ea879933e
--- /dev/null
+++ b/spec/factories/callouts.rb
@@ -0,0 +1,8 @@
+FactoryBot.define do
+ factory :callout do
+ feature_name 'test_callout'
+ dismissed_state false
+
+ user
+ end
+end
diff --git a/spec/models/callout_spec.rb b/spec/models/callout_spec.rb
new file mode 100644
index 00000000000..8328ce06139
--- /dev/null
+++ b/spec/models/callout_spec.rb
@@ -0,0 +1,9 @@
+require 'rails_helper'
+
+describe Callout do
+ let(:callout) { create(:callout) }
+
+ describe 'relationships' do
+ it { is_expected.to belong_to(:user) }
+ end
+end