debian-mirror-gitlab/spec/models/work_item_spec.rb
2022-04-04 11:22:00 +05:30

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