debian-mirror-gitlab/spec/requests/projects/work_items_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
566 B
Ruby
Raw Normal View History

2022-06-21 17:19:12 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe 'Work Items', feature_category: :team_planning do
2022-06-21 17:19:12 +05:30
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
2023-01-13 00:05:48 +05:30
it 'renders index' do
get project_work_items_url(work_item.project, work_items_path: work_item.id)
2022-06-21 17:19:12 +05:30
2023-01-13 00:05:48 +05:30
expect(response).to have_gitlab_http_status(:ok)
2022-06-21 17:19:12 +05:30
end
end
end