summaryrefslogtreecommitdiff
path: root/spec/requests/projects/work_items_spec.rb
blob: 056416d380d6b8d6bd39de4198ff44e57449345c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Work Items', feature_category: :team_planning do
  let_it_be(:work_item) { create(:work_item) }
  let_it_be(:developer) { create(:user) }

  before_all do
    work_item.project.add_developer(developer)
  end

  describe 'GET /:namespace/:project/work_items/:id' do
    before do
      sign_in(developer)
    end

    it 'renders index' do
      get project_work_items_url(work_item.project, work_items_path: work_item.id)

      expect(response).to have_gitlab_http_status(:ok)
    end
  end
end