23 lines
612 B
Ruby
23 lines
612 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe PlanningHierarchy, type: :request, feature_category: :projects do
|
|
let_it_be(:user) { create(:user) }
|
|
let_it_be(:group) { create(:group) }
|
|
let_it_be(:project) { create(:project, group: group) }
|
|
|
|
before do
|
|
project.add_maintainer(user)
|
|
sign_in(user)
|
|
end
|
|
|
|
describe 'GET #planning_hierarchy' do
|
|
it 'renders planning hierarchy' do
|
|
get project_planning_hierarchy_path(project)
|
|
|
|
expect(response).to have_gitlab_http_status(:ok)
|
|
expect(response.body).to match(/id="js-work-items-hierarchy"/)
|
|
end
|
|
end
|
|
end
|