OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#54356] Change permission header for storages module.
Pavel Balashou4a4c193afcb3
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex b46f58e2069..b840047e8a9 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -42,6 +42,7 @@ en:too_many_elements_created_at_once: Too many elements created at once. Expected %{max} at most, got %{actual}.permission_create_files: 'External Storage: Create files'permission_delete_files: 'External Storage: Delete files'+ permission_header_for_project_module_storages: Automatically managed project folderspermission_manage_file_links: Manage file linkspermission_manage_storages_in_project: Manage file storages in projectpermission_read_files: 'External Storage: Read files'diff --git a/modules/storages/spec/features/storages_module_spec.rb b/modules/storages/spec/features/storages_module_spec.rbindex 8d67ded51a7..9c9dab87d06 100644--- a/modules/storages/spec/features/storages_module_spec.rb+++ b/modules/storages/spec/features/storages_module_spec.rb@@ -90,14 +90,22 @@ RSpec.describe "Storages module", :js, :with_cuprite doendcontext "when creating a new role" do- it_behaves_like "has storages module", sections: [:content], is_upcase: true do- let(:path) { new_role_path }+ it 'must have appropriate storage permissions header in content section' do+ visit new_role_path++ within "#content" do+ expect(page).to have_text(I18n.t(:permission_header_for_project_module_storages).upcase)+ endendendcontext "when editing a role" do- it_behaves_like "has storages module", sections: [:content], is_upcase: true do- let(:path) { edit_role_path(role) }+ it 'must have appropriate storage permissions header in content section' do+ visit edit_role_path(role)++ within "#content" do+ expect(page).to have_text(I18n.t(:permission_header_for_project_module_storages).upcase)+ endendend