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

Disable DynamicFindBy cop in feature spec

Oliver Güntherffeaff1956c1
diff --git a/.rubocop.yml b/.rubocop.yml
index e75e366b760..668407da28e 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -176,6 +176,14 @@ RSpec/DescribeClass:
- 'spec/features/**/*.rb'
- 'modules/*/spec/features/**/*.rb'
+# dynamic finders cop clashes with capybara ID cop
+Rails/DynamicFindBy:
+ Enabled: true
+ Exclude:
+ - 'spec/features/**/*.rb'
+ - 'spec/support/**/*.rb'
+ - 'modules/*/spec/features/**/*.rb'
+
# See RSpec/ExampleLength for why feature specs are excluded
RSpec/MultipleExpectations:
Max: 15