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

Include Capybara::RSpecMatchers where DSL is included

Christophe Bliarde3f4a6b58285
diff --git a/modules/bim/spec/support/components/xeokit_model_tree.rb b/modules/bim/spec/support/components/xeokit_model_tree.rb
index 831aa92448c..b6fc5cbeba1 100644
--- a/modules/bim/spec/support/components/xeokit_model_tree.rb
+++ b/modules/bim/spec/support/components/xeokit_model_tree.rb
@@ -29,10 +29,9 @@
module Components
class XeokitModelTree
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def sidebar_shows_viewer_menu(visible)
selector = '.xeokit-tab'
tabs = ['Models', 'Objects', 'Classes', 'Storeys']
diff --git a/modules/reporting/spec/features/support/components/cost_reports_base_table.rb b/modules/reporting/spec/features/support/components/cost_reports_base_table.rb
index de2ec5c9698..946ed94f112 100644
--- a/modules/reporting/spec/features/support/components/cost_reports_base_table.rb
+++ b/modules/reporting/spec/features/support/components/cost_reports_base_table.rb
@@ -29,6 +29,7 @@
module Components
class CostReportsBaseTable
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :time_logging_modal
diff --git a/modules/storages/spec/support/components/file_picker_dialog.rb b/modules/storages/spec/support/components/file_picker_dialog.rb
index 2445d4081ba..525cfa0b006 100644
--- a/modules/storages/spec/support/components/file_picker_dialog.rb
+++ b/modules/storages/spec/support/components/file_picker_dialog.rb
@@ -29,6 +29,7 @@
module Components
class FilePickerDialog
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def container
diff --git a/modules/team_planner/spec/support/components/add_existing_pane.rb b/modules/team_planner/spec/support/components/add_existing_pane.rb
index bec9e3240ad..ef3f87460fc 100644
--- a/modules/team_planner/spec/support/components/add_existing_pane.rb
+++ b/modules/team_planner/spec/support/components/add_existing_pane.rb
@@ -29,10 +29,9 @@
module Components
class AddExistingPane
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def selector
"[data-qa-selector='add-existing-pane']"
end
diff --git a/spec/features/categories/categories_page.rb b/spec/features/categories/categories_page.rb
index e960abb4cf2..48cd78bc932 100644
--- a/spec/features/categories/categories_page.rb
+++ b/spec/features/categories/categories_page.rb
@@ -29,6 +29,7 @@
class CategoriesPage
include Rails.application.routes.url_helpers
include Capybara::DSL
+ include Capybara::RSpecMatchers
def initialize(project = nil)
@project = project
diff --git a/spec/features/custom_fields/custom_fields_page.rb b/spec/features/custom_fields/custom_fields_page.rb
index 18f68d0172e..8a1b205c331 100644
--- a/spec/features/custom_fields/custom_fields_page.rb
+++ b/spec/features/custom_fields/custom_fields_page.rb
@@ -29,6 +29,7 @@
class CustomFieldsPage
include Rails.application.routes.url_helpers
include Capybara::DSL
+ include Capybara::RSpecMatchers
def visit_new(type = 'WorkPackageCustomField')
visit new_custom_field_path type:
diff --git a/spec/features/repositories/repository_settings_page.rb b/spec/features/repositories/repository_settings_page.rb
index 07283079527..5d2ce3d95fc 100644
--- a/spec/features/repositories/repository_settings_page.rb
+++ b/spec/features/repositories/repository_settings_page.rb
@@ -29,6 +29,7 @@
class RepositorySettingsPage
include Rails.application.routes.url_helpers
include Capybara::DSL
+ include Capybara::RSpecMatchers
def initialize(project)
@project = project
diff --git a/spec/features/support/components/attribute_help_text_modal.rb b/spec/features/support/components/attribute_help_text_modal.rb
index 3123ff1da22..a6e9fd3ec2e 100644
--- a/spec/features/support/components/attribute_help_text_modal.rb
+++ b/spec/features/support/components/attribute_help_text_modal.rb
@@ -29,6 +29,7 @@
module Components
class AttributeHelpTextModal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :help_text, :context
diff --git a/spec/features/support/components/danger_zone.rb b/spec/features/support/components/danger_zone.rb
index 2328800ef3b..2a351352a65 100644
--- a/spec/features/support/components/danger_zone.rb
+++ b/spec/features/support/components/danger_zone.rb
@@ -28,6 +28,7 @@
class DangerZone
include Capybara::DSL
+ include Capybara::RSpecMatchers
attr_reader :page
diff --git a/spec/features/support/components/time_logging_modal.rb b/spec/features/support/components/time_logging_modal.rb
index e1f9a05c704..7fa00b5a888 100644
--- a/spec/features/support/components/time_logging_modal.rb
+++ b/spec/features/support/components/time_logging_modal.rb
@@ -29,6 +29,7 @@
module Components
class TimeLoggingModal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :activity_field,
diff --git a/spec/features/work_packages/work_packages_page.rb b/spec/features/work_packages/work_packages_page.rb
index 4bc5c91592b..c5443b69803 100644
--- a/spec/features/work_packages/work_packages_page.rb
+++ b/spec/features/work_packages/work_packages_page.rb
@@ -29,6 +29,7 @@
class WorkPackagesPage
include Rails.application.routes.url_helpers
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def initialize(project = nil)
diff --git a/spec/support/components/admin/type_configuration_form.rb b/spec/support/components/admin/type_configuration_form.rb
index f235561a996..4e519dee86a 100644
--- a/spec/support/components/admin/type_configuration_form.rb
+++ b/spec/support/components/admin/type_configuration_form.rb
@@ -30,10 +30,9 @@ module Components
module Admin
class TypeConfigurationForm
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def add_button_dropdown
page.find '.form-configuration--add-group', text: 'Group'
end
diff --git a/spec/support/components/attachments/attachments.rb b/spec/support/components/attachments/attachments.rb
index 0a7e014cd75..48c5a1670f1 100644
--- a/spec/support/components/attachments/attachments.rb
+++ b/spec/support/components/attachments/attachments.rb
@@ -3,8 +3,7 @@
module Components
class Attachments
include Capybara::DSL
-
- def initialize; end
+ include Capybara::RSpecMatchers
##
# Drag and Drop the file loaded from path on to the (native) target element
diff --git a/spec/support/components/common/modal.rb b/spec/support/components/common/modal.rb
index a56c24a853a..36e582e9976 100644
--- a/spec/support/components/common/modal.rb
+++ b/spec/support/components/common/modal.rb
@@ -30,10 +30,9 @@ module Components
module Common
class Modal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def expect_title(text)
within_modal do
expect(page).to have_selector('.spot-modal--header', text:)
diff --git a/spec/support/components/common/sidemenu.rb b/spec/support/components/common/sidemenu.rb
index 41cf54608cf..6361818c19d 100644
--- a/spec/support/components/common/sidemenu.rb
+++ b/spec/support/components/common/sidemenu.rb
@@ -30,10 +30,9 @@ module Components
module Notifications
class Sidemenu
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def expect_open
expect(page).to have_selector('[data-qa-selector="op-sidemenu"]')
end
diff --git a/spec/support/components/confirmation_dialog.rb b/spec/support/components/confirmation_dialog.rb
index 4059b394767..967106ed171 100644
--- a/spec/support/components/confirmation_dialog.rb
+++ b/spec/support/components/confirmation_dialog.rb
@@ -29,6 +29,7 @@
module Components
class ConfirmationDialog
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def container
diff --git a/spec/support/components/datepicker/datepicker.rb b/spec/support/components/datepicker/datepicker.rb
index 35f83277b16..377aeda5ab7 100644
--- a/spec/support/components/datepicker/datepicker.rb
+++ b/spec/support/components/datepicker/datepicker.rb
@@ -1,6 +1,7 @@
module Components
class Datepicker
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :context_selector
diff --git a/spec/support/components/global_search.rb b/spec/support/components/global_search.rb
index dad4105d75a..5b826d64c39 100644
--- a/spec/support/components/global_search.rb
+++ b/spec/support/components/global_search.rb
@@ -1,10 +1,9 @@
module Components
class GlobalSearch
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def container
page.find('.top-menu-search--input')
end
diff --git a/spec/support/components/grids/grid_area.rb b/spec/support/components/grids/grid_area.rb
index e3c40b50c53..388c25e4840 100644
--- a/spec/support/components/grids/grid_area.rb
+++ b/spec/support/components/grids/grid_area.rb
@@ -2,6 +2,7 @@ module Components
module Grids
class GridArea
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_accessor :area_selector
diff --git a/spec/support/components/html_title.rb b/spec/support/components/html_title.rb
index 8e7985c22f2..6d6401398d5 100644
--- a/spec/support/components/html_title.rb
+++ b/spec/support/components/html_title.rb
@@ -29,6 +29,7 @@
module Components
class HtmlTitle
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :project
diff --git a/spec/support/components/menu/dropdown.rb b/spec/support/components/menu/dropdown.rb
index 0476e495664..072b624e60f 100644
--- a/spec/support/components/menu/dropdown.rb
+++ b/spec/support/components/menu/dropdown.rb
@@ -29,10 +29,9 @@
module Components
class Dropdown
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def toggle
trigger_element.click
end
diff --git a/spec/support/components/password_confirmation_dialog.rb b/spec/support/components/password_confirmation_dialog.rb
index 373335d90b2..966afaee153 100644
--- a/spec/support/components/password_confirmation_dialog.rb
+++ b/spec/support/components/password_confirmation_dialog.rb
@@ -29,6 +29,7 @@
module Components
class PasswordConfirmationDialog
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def confirm_flow_with(password, should_fail: false)
diff --git a/spec/support/components/project_include_component.rb b/spec/support/components/project_include_component.rb
index 7135c7eb2dc..82ee12e9698 100644
--- a/spec/support/components/project_include_component.rb
+++ b/spec/support/components/project_include_component.rb
@@ -29,10 +29,9 @@
module Components
class ProjectIncludeComponent
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def clear_tooltips
# Just hover anything else
page.find("[data-qa-selector='project-include-search']").hover
diff --git a/spec/support/components/projects/top_menu.rb b/spec/support/components/projects/top_menu.rb
index fc1dba7dcf5..90a0f286fb2 100644
--- a/spec/support/components/projects/top_menu.rb
+++ b/spec/support/components/projects/top_menu.rb
@@ -31,6 +31,7 @@ module Components
module Projects
class TopMenu
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include ::Components::Autocompleter::AutocompleteHelpers
diff --git a/spec/support/components/table_pagination.rb b/spec/support/components/table_pagination.rb
index 7df9bb5fe13..99537867a71 100644
--- a/spec/support/components/table_pagination.rb
+++ b/spec/support/components/table_pagination.rb
@@ -29,6 +29,7 @@
module Components
class TablePagination
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def expect_range(from, to, total)
diff --git a/spec/support/components/timelines/configuration_modal.rb b/spec/support/components/timelines/configuration_modal.rb
index e15ffac1556..7ebc3f26349 100644
--- a/spec/support/components/timelines/configuration_modal.rb
+++ b/spec/support/components/timelines/configuration_modal.rb
@@ -30,6 +30,7 @@ module Components
module Timelines
class ConfigurationModal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :settings_menu
diff --git a/spec/support/components/timelines/timeline_row.rb b/spec/support/components/timelines/timeline_row.rb
index 189ba701c34..83d6eae7277 100644
--- a/spec/support/components/timelines/timeline_row.rb
+++ b/spec/support/components/timelines/timeline_row.rb
@@ -30,6 +30,7 @@ module Components
module Timelines
class TimelineRow
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :container
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index 339b82843b6..3fe83236230 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class Activities
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :work_package
diff --git a/spec/support/components/work_packages/columns.rb b/spec/support/components/work_packages/columns.rb
index dea8064c4eb..c157131b23d 100644
--- a/spec/support/components/work_packages/columns.rb
+++ b/spec/support/components/work_packages/columns.rb
@@ -32,6 +32,7 @@ module Components
module WorkPackages
class Columns
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include ::Components::Autocompleter::NgSelectAutocompleteHelpers
diff --git a/spec/support/components/work_packages/context_menu.rb b/spec/support/components/work_packages/context_menu.rb
index efed323f6ba..83e0dbb3e92 100644
--- a/spec/support/components/work_packages/context_menu.rb
+++ b/spec/support/components/work_packages/context_menu.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class ContextMenu
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def open_for(work_package, card_view: false)
diff --git a/spec/support/components/work_packages/destroy_modal.rb b/spec/support/components/work_packages/destroy_modal.rb
index 97ce2b4831f..873e3292a08 100644
--- a/spec/support/components/work_packages/destroy_modal.rb
+++ b/spec/support/components/work_packages/destroy_modal.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class DestroyModal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def container
diff --git a/spec/support/components/work_packages/display_representation.rb b/spec/support/components/work_packages/display_representation.rb
index 982365151f6..aa6e1a0eadd 100644
--- a/spec/support/components/work_packages/display_representation.rb
+++ b/spec/support/components/work_packages/display_representation.rb
@@ -30,10 +30,9 @@ module Components
module WorkPackages
class DisplayRepresentation
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def switch_to_card_layout
expect_button 'Card'
select_view 'Card'
diff --git a/spec/support/components/work_packages/filters.rb b/spec/support/components/work_packages/filters.rb
index e5afb10835e..f093321b06e 100644
--- a/spec/support/components/work_packages/filters.rb
+++ b/spec/support/components/work_packages/filters.rb
@@ -33,6 +33,7 @@ module Components
module WorkPackages
class Filters
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include SeleniumWorkarounds
include ::Components::Autocompleter::NgSelectAutocompleteHelpers
diff --git a/spec/support/components/work_packages/group_by.rb b/spec/support/components/work_packages/group_by.rb
index e14c4af74d6..ffd98cf3364 100644
--- a/spec/support/components/work_packages/group_by.rb
+++ b/spec/support/components/work_packages/group_by.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class GroupBy
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def enable_via_header(name)
diff --git a/spec/support/components/work_packages/hierarchies.rb b/spec/support/components/work_packages/hierarchies.rb
index 85883536f86..f16b435c1a1 100644
--- a/spec/support/components/work_packages/hierarchies.rb
+++ b/spec/support/components/work_packages/hierarchies.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class Hierarchies
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :context_menu
diff --git a/spec/support/components/work_packages/query_menu.rb b/spec/support/components/work_packages/query_menu.rb
index 8261bce618a..50feb2c57f6 100644
--- a/spec/support/components/work_packages/query_menu.rb
+++ b/spec/support/components/work_packages/query_menu.rb
@@ -31,6 +31,7 @@ module Components
module WorkPackages
class QueryMenu
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include ::Components::Autocompleter::AutocompleteHelpers
diff --git a/spec/support/components/work_packages/query_title.rb b/spec/support/components/work_packages/query_title.rb
index b99333736b2..3f1182d9ba4 100644
--- a/spec/support/components/work_packages/query_title.rb
+++ b/spec/support/components/work_packages/query_title.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class QueryTitle
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def expect_changed
diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rb
index 8dee65ec154..192b79ab926 100644
--- a/spec/support/components/work_packages/relations.rb
+++ b/spec/support/components/work_packages/relations.rb
@@ -32,6 +32,7 @@ module Components
module WorkPackages
class Relations
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include ::Components::Autocompleter::NgSelectAutocompleteHelpers
diff --git a/spec/support/components/work_packages/settings_menu.rb b/spec/support/components/work_packages/settings_menu.rb
index cc1344f5793..2994358fdac 100644
--- a/spec/support/components/work_packages/settings_menu.rb
+++ b/spec/support/components/work_packages/settings_menu.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class SettingsMenu
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def open_and_save_query(name)
diff --git a/spec/support/components/work_packages/sort_by.rb b/spec/support/components/work_packages/sort_by.rb
index e24c147b304..97786c2e6b1 100644
--- a/spec/support/components/work_packages/sort_by.rb
+++ b/spec/support/components/work_packages/sort_by.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class SortBy
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def sort_via_header(name, selector: nil, descending: false)
diff --git a/spec/support/components/work_packages/table_configuration/graph_general.rb b/spec/support/components/work_packages/table_configuration/graph_general.rb
index ba1693ee680..8d71ff73234 100644
--- a/spec/support/components/work_packages/table_configuration/graph_general.rb
+++ b/spec/support/components/work_packages/table_configuration/graph_general.rb
@@ -31,6 +31,7 @@ module Components
module TableConfiguration
class GraphGeneral
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
def set_type(name)
diff --git a/spec/support/components/work_packages/table_configuration/highlighting.rb b/spec/support/components/work_packages/table_configuration/highlighting.rb
index c78b3a196b5..5835dcdae93 100644
--- a/spec/support/components/work_packages/table_configuration/highlighting.rb
+++ b/spec/support/components/work_packages/table_configuration/highlighting.rb
@@ -30,10 +30,9 @@ module Components
module WorkPackages
class Highlighting
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
- def initialize; end
-
def switch_highlighting_mode(label)
modal_open? or open_modal
choose label
diff --git a/spec/support/components/work_packages/table_configuration_modal.rb b/spec/support/components/work_packages/table_configuration_modal.rb
index 18d744800d9..06dec1d772c 100644
--- a/spec/support/components/work_packages/table_configuration_modal.rb
+++ b/spec/support/components/work_packages/table_configuration_modal.rb
@@ -30,6 +30,7 @@ module Components
module WorkPackages
class TableConfigurationModal
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_accessor :trigger_parent
diff --git a/spec/support/components/work_packages/tabs_counter.rb b/spec/support/components/work_packages/tabs_counter.rb
index 2ef35bbb736..f8f489da4ec 100644
--- a/spec/support/components/work_packages/tabs_counter.rb
+++ b/spec/support/components/work_packages/tabs_counter.rb
@@ -2,6 +2,7 @@ module Components
module WorkPackages
class Tabs
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :work_package
diff --git a/spec/support/components/wysiwyg/wysiwyg_editor.rb b/spec/support/components/wysiwyg/wysiwyg_editor.rb
index d7ec72150c9..5007010edd9 100644
--- a/spec/support/components/wysiwyg/wysiwyg_editor.rb
+++ b/spec/support/components/wysiwyg/wysiwyg_editor.rb
@@ -1,6 +1,7 @@
module Components
class WysiwygEditor
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :context_selector, :attachments
diff --git a/spec/support/edit_fields/edit_field.rb b/spec/support/edit_fields/edit_field.rb
index 82e9cb5aeed..883d0e78b0c 100644
--- a/spec/support/edit_fields/edit_field.rb
+++ b/spec/support/edit_fields/edit_field.rb
@@ -1,5 +1,6 @@
class EditField
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
include ::Components::Autocompleter::NgSelectAutocompleteHelpers
diff --git a/spec/support/form_fields/form_field.rb b/spec/support/form_fields/form_field.rb
index 0b626b4da80..e80e253a4f5 100644
--- a/spec/support/form_fields/form_field.rb
+++ b/spec/support/form_fields/form_field.rb
@@ -1,6 +1,7 @@
module FormFields
class FormField
include Capybara::DSL
+ include Capybara::RSpecMatchers
include RSpec::Matchers
attr_reader :property, :selector
diff --git a/spec/support/pages/work_packages/work_package_cards.rb b/spec/support/pages/work_packages/work_package_cards.rb
index c595ef222a5..e61cc9fea44 100644
--- a/spec/support/pages/work_packages/work_package_cards.rb
+++ b/spec/support/pages/work_packages/work_package_cards.rb
@@ -29,8 +29,6 @@ require 'support/pages/page'
module Pages
class WorkPackageCards < Page
- include Capybara::DSL
- include RSpec::Matchers
attr_reader :project
def initialize(project = nil)
diff --git a/spec/views/layouts/base.html.erb_spec.rb b/spec/views/layouts/base.html.erb_spec.rb
index af5fed0715d..e4a61083a78 100644
--- a/spec/views/layouts/base.html.erb_spec.rb
+++ b/spec/views/layouts/base.html.erb_spec.rb
@@ -33,6 +33,7 @@ describe 'layouts/base', type: :view do
# we reach this spec, but for running this spec alone we need it here. Best
# of both worlds.
include Capybara::DSL
+ include Capybara::RSpecMatchers
include Redmine::MenuManager::MenuHelper
helper Redmine::MenuManager::MenuHelper