diff options
Diffstat (limited to 'spec/serializers/issue_board_entity_spec.rb')
-rw-r--r-- | spec/serializers/issue_board_entity_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/serializers/issue_board_entity_spec.rb b/spec/serializers/issue_board_entity_spec.rb index 7a6a496912f..0c9c8f05e17 100644 --- a/spec/serializers/issue_board_entity_spec.rb +++ b/spec/serializers/issue_board_entity_spec.rb @@ -57,8 +57,18 @@ RSpec.describe IssueBoardEntity do context 'when issue is of type task' do let(:resource) { create(:issue, :task, project: project) } - it 'has a work item path' do - expect(subject[:real_path]).to eq(project_work_items_path(project, resource.id)) + context 'when the use_iid_in_work_items_path feature flag is disabled' do + before do + stub_feature_flags(use_iid_in_work_items_path: false) + end + + it 'has a work item path' do + expect(subject[:real_path]).to eq(project_work_items_path(project, resource.id)) + end + end + + it 'has a work item path with iid' do + expect(subject[:real_path]).to eq(project_work_items_path(project, resource.iid, iid_path: true)) end end end |