gitlab-org--gitlab-foss/spec/models/work_item_spec.rb

13 lines
291 B
Ruby

# 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