summaryrefslogtreecommitdiff
path: root/spec/models/project_label_spec.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-20 17:07:56 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:24 -0200
commitcfedd42badc6b84457d1de35cb31988777462d5a (patch)
treeca0588b33e11d2f28104b320dcec6884ac148ec8 /spec/models/project_label_spec.rb
parente2dd75c0a2d863c8e530e54f3a0a015bdec1e84f (diff)
downloadgitlab-ce-cfedd42badc6b84457d1de35cb31988777462d5a.tar.gz
Add ProjectLabel model
Diffstat (limited to 'spec/models/project_label_spec.rb')
-rw-r--r--spec/models/project_label_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/project_label_spec.rb b/spec/models/project_label_spec.rb
new file mode 100644
index 00000000000..93062b9d402
--- /dev/null
+++ b/spec/models/project_label_spec.rb
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe ProjectLabel, models: true do
+ describe 'relationships' do
+ it { is_expected.to belong_to(:project) }
+ end
+
+ describe 'validations' do
+ it { is_expected.to validate_presence_of(:project) }
+ end
+end