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

fix deprecations

ulfertse14e0dea9514
diff --git a/spec/lib/tabular_form_builder_spec.rb b/spec/lib/tabular_form_builder_spec.rb
index 2d1d69b7a30..67d8e0e8e54 100644
--- a/spec/lib/tabular_form_builder_spec.rb
+++ b/spec/lib/tabular_form_builder_spec.rb
@@ -32,7 +32,7 @@ require 'ostruct'
describe TabularFormBuilder do
include Capybara::RSpecMatchers
- let(:helper) { ActionView::Base.new }
+ let(:helper) { ActionView::Base.new(ActionView::LookupContext.new('')) }
let(:resource) do
FactoryBot.build(:user,
firstname: 'JJ',
diff --git a/spec/support/shared/with_config.rb b/spec/support/shared/with_config.rb
index 73295d35789..f7f37c59131 100644
--- a/spec/support/shared/with_config.rb
+++ b/spec/support/shared/with_config.rb
@@ -30,7 +30,7 @@
def aggregate_mocked_configuration(example, config)
# We have to manually check parent groups for with_config:,
# since they are being ignored otherwise
- example.example_group.parents.each do |parent|
+ example.example_group.module_parents.each do |parent|
if parent.respond_to?(:metadata) && parent.metadata[:with_config]
config.reverse_merge!(parent.metadata[:with_config])
end
diff --git a/spec/support/shared/with_ee.rb b/spec/support/shared/with_ee.rb
index 859c6228dbb..c949225a2c3 100644
--- a/spec/support/shared/with_ee.rb
+++ b/spec/support/shared/with_ee.rb
@@ -30,7 +30,7 @@
def aggregate_parent_array(example, acc)
# We have to manually check parent groups for with_ee:,
# since they are being ignored otherwise
- example.example_group.parents.each do |parent|
+ example.example_group.module_parents.each do |parent|
if parent.respond_to?(:metadata) && parent.metadata[:with_ee]
acc.merge(parent.metadata[:with_ee])
end