mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
rename project attributes page helper classes to match path
This commit is contained in:
@@ -34,7 +34,7 @@ require_relative "shared_context"
|
||||
RSpec.describe "Create project custom fields in sections", :js do
|
||||
include_context "with seeded project custom fields"
|
||||
|
||||
let(:cf_index_page) { Pages::Admin::CustomFields::CustomFieldsProjects::Index.new }
|
||||
let(:cf_index_page) { Pages::Admin::Settings::ProjectCustomFields::Index.new }
|
||||
|
||||
context "with insufficient permissions" do
|
||||
it "is not accessible" do
|
||||
|
||||
@@ -34,7 +34,7 @@ require_relative "shared_context"
|
||||
RSpec.describe "List project custom fields", :js do
|
||||
include_context "with seeded project custom fields"
|
||||
|
||||
let(:cf_index_page) { Pages::Admin::CustomFields::CustomFieldsProjects::Index.new }
|
||||
let(:cf_index_page) { Pages::Admin::Settings::ProjectCustomFields::Index.new }
|
||||
|
||||
context "with insufficient permissions" do
|
||||
it "is not accessible" do
|
||||
|
||||
@@ -42,7 +42,7 @@ RSpec.describe "Project Custom Field Mappings", :js do
|
||||
create(:project_custom_field_project_mapping, project_custom_field:, project: archived_project)
|
||||
end
|
||||
|
||||
let(:project_custom_field_mappings_page) { Pages::Admin::CustomFields::CustomFieldsProjects::ProjectMappings.new }
|
||||
let(:project_custom_field_mappings_page) { Pages::Admin::Settings::ProjectCustomFields::ProjectMappings.new }
|
||||
|
||||
context "with insufficient permissions" do
|
||||
it "is not accessible" do
|
||||
|
||||
+2
-2
@@ -32,8 +32,8 @@ require "support/pages/custom_fields/index_page"
|
||||
|
||||
module Pages
|
||||
module Admin
|
||||
module CustomFields
|
||||
module CustomFieldsProjects
|
||||
module Settings
|
||||
module ProjectCustomFields
|
||||
class Index < ::Pages::CustomFields::IndexPage
|
||||
def path
|
||||
"/admin/settings/project_custom_fields"
|
||||
+2
-2
@@ -32,8 +32,8 @@ require "support/pages/custom_fields/project_mappings"
|
||||
|
||||
module Pages
|
||||
module Admin
|
||||
module CustomFields
|
||||
module CustomFieldsProjects
|
||||
module Settings
|
||||
module ProjectCustomFields
|
||||
class ProjectMappings < ::Pages::CustomFields::ProjectMappings
|
||||
def path(project_custom_field)
|
||||
"/admin/settings/project_custom_fields/#{project_custom_field.id}/project_mappings"
|
||||
Reference in New Issue
Block a user