summaryrefslogtreecommitdiff
path: root/spec/models/work_item_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/work_item_spec.rb')
-rw-r--r--spec/models/work_item_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/models/work_item_spec.rb b/spec/models/work_item_spec.rb
new file mode 100644
index 00000000000..2fa1abda44a
--- /dev/null
+++ b/spec/models/work_item_spec.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe WorkItem do
+ describe '#noteable_target_type_name' do
+ it 'returns `issue` as the target name' do
+ work_item = build(:work_item)
+
+ expect(work_item.noteable_target_type_name).to eq('issue')
+ end
+ end
+end