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

[#64347] remove unnecessary stub

Tobias Dillmanna2daa82dc791
diff --git a/spec/contracts/project_custom_field_project_mappings/base_contract_spec.rb b/spec/contracts/project_custom_field_project_mappings/base_contract_spec.rb
index 951288f98ea..0c5e75e950a 100644
--- a/spec/contracts/project_custom_field_project_mappings/base_contract_spec.rb
+++ b/spec/contracts/project_custom_field_project_mappings/base_contract_spec.rb
@@ -51,12 +51,6 @@ RSpec.describe ProjectCustomFieldProjectMappings::BaseContract do
context "with non-visible custom field and admin user" do
let(:project_custom_field) { create(:project_custom_field, admin_only: true) }
- before do
- # Stub `all` to return an ActiveRecord::Relation, not an array, so that further query chaining
- # (e.g., .where) works as expected.
- allow(ProjectCustomField).to receive(:all).and_return(ProjectCustomField.where(id: project_custom_field.id))
- end
-
it_behaves_like "contract is valid"
end