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
Rename shared_examples name.
Pavel Balashou92bfe42b5616
diff --git a/modules/storages/spec/lib/append_storages_hosts_to_csp_hook_spec.rb b/modules/storages/spec/lib/append_storages_hosts_to_csp_hook_spec.rbindex 3e2aa62bcc1..b4ba653c913 100644--- a/modules/storages/spec/lib/append_storages_hosts_to_csp_hook_spec.rb+++ b/modules/storages/spec/lib/append_storages_hosts_to_csp_hook_spec.rb@@ -52,7 +52,7 @@ RSpec.describe OpenProject::Storages::AppendStoragesHostsToCspHook dohook_listener.application_controller_before_action(controller:)end- shared_examples 'modifies CSP' do+ shared_examples 'content security policy directives' doit 'adds CSP connect_src and frame_ancestors directives' dotrigger_application_controller_before_action_hook@@ -73,13 +73,13 @@ RSpec.describe OpenProject::Storages::AppendStoragesHostsToCspHook docontext 'when current user is an admin without being a member of any project' docurrent_user { admin }- include_examples 'modifies CSP'+ include_examples 'content security policy directives'endcontext 'when current user is a member of the project with permission to manage file links' docurrent_user { create(:user, member_in_project: project, member_with_permissions: %i[manage_file_links]) }- include_examples 'modifies CSP'+ include_examples 'content security policy directives'endcontext 'when current user is a member of the project without permission to manage file links' do