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

naming shares resell examples, comment spec for clarity

Markus Kahla5a795d88cce
diff --git a/modules/storages/spec/controllers/storages/admin/storages_controller_spec.rb b/modules/storages/spec/controllers/storages/admin/storages_controller_spec.rb
index 69e08b276de..05c0f6c51c3 100644
--- a/modules/storages/spec/controllers/storages/admin/storages_controller_spec.rb
+++ b/modules/storages/spec/controllers/storages/admin/storages_controller_spec.rb
@@ -38,5 +38,5 @@ RSpec.describe Storages::Admin::StoragesController do
login_as user
end
- it_behaves_like "the upsell banner is shown"
+ it_behaves_like "it has an upsell action"
end
diff --git a/modules/team_planner/spec/controllers/team_planner/team_planner_controller_spec.rb b/modules/team_planner/spec/controllers/team_planner/team_planner_controller_spec.rb
index a758b469adc..92a48962adb 100644
--- a/modules/team_planner/spec/controllers/team_planner/team_planner_controller_spec.rb
+++ b/modules/team_planner/spec/controllers/team_planner/team_planner_controller_spec.rb
@@ -38,8 +38,10 @@ RSpec.describe TeamPlanner::TeamPlannerController do
before do
login_as user
+ # We need to set this as the team planner controller needs to be used in the context of a project.
+ # Without a project, any action will result in a 403 forbidden response.
controller.instance_variable_set(:@project, project)
end
- it_behaves_like "the upsell banner is shown"
+ it_behaves_like "it has an upsell action"
end
diff --git a/spec/controllers/custom_styles_controller_spec.rb b/spec/controllers/custom_styles_controller_spec.rb
index 93a81c94673..9d9f76e42e9 100644
--- a/spec/controllers/custom_styles_controller_spec.rb
+++ b/spec/controllers/custom_styles_controller_spec.rb
@@ -57,7 +57,7 @@ RSpec.describe CustomStylesController do
end
end
- it_behaves_like "the upsell banner is shown"
+ it_behaves_like "it has an upsell action"
describe "#create", with_ee: %i[define_custom_style] do
let(:custom_style) { CustomStyle.new }
diff --git a/spec/controllers/shared_upsell_examples.rb b/spec/controllers/shared_upsell_examples.rb
index 32be0739b3d..22b2ec34db9 100644
--- a/spec/controllers/shared_upsell_examples.rb
+++ b/spec/controllers/shared_upsell_examples.rb
@@ -30,7 +30,7 @@
require "spec_helper"
-RSpec.shared_examples_for "the upsell banner is shown" do
+RSpec.shared_examples_for "it has an upsell action" do
subject { get :upsell }
it "renders the upsell page" do