summaryrefslogtreecommitdiff
path: root/spec/models/label_priority_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/label_priority_spec.rb')
-rw-r--r--spec/models/label_priority_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/label_priority_spec.rb b/spec/models/label_priority_spec.rb
index db961d5a4e6..adeccd999f3 100644
--- a/spec/models/label_priority_spec.rb
+++ b/spec/models/label_priority_spec.rb
@@ -18,5 +18,11 @@ RSpec.describe LabelPriority do
expect(subject).to validate_uniqueness_of(:label_id).scoped_to(:project_id)
end
+
+ describe 'when importing' do
+ subject { create(:label_priority, importing: true) }
+
+ it { is_expected.not_to validate_presence_of(:label) }
+ end
end
end