Skip to content

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

Switch `menu_items/admin_menu_item_spec` to cuprite

Aaron Contrerasa4beb9c646b3
diff --git a/.rubocop.yml b/.rubocop.yml
index 026c7a4931b..e883331097b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -230,6 +230,7 @@ RSpec/ContextWording:
Prefixes:
- as
- for
+ - having
- if
- 'on'
- to
diff --git a/spec/features/menu_items/admin_menu_item_spec.rb b/spec/features/menu_items/admin_menu_item_spec.rb
index bc6283e936a..a0385c1ef5c 100644
--- a/spec/features/menu_items/admin_menu_item_spec.rb
+++ b/spec/features/menu_items/admin_menu_item_spec.rb
@@ -28,7 +28,9 @@
require 'spec_helper'
-RSpec.describe 'Admin menu items', js: true do
+RSpec.describe 'Admin menu items',
+ js: true,
+ with_cuprite: true do
let(:user) { create(:admin) }
before do
@@ -49,7 +51,7 @@ RSpec.describe 'Admin menu items', js: true do
end
end
- context 'with having custom hidden menu items',
+ context 'having custom hidden menu items',
with_config: {
'hidden_menu_items' => { 'admin_menu' => ['colors'] }
} do