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 exits scope check

Klaus Zandersa0bf5ad44716
diff --git a/modules/overviews/spec/contracts/grids/create_contract_spec.rb b/modules/overviews/spec/contracts/grids/create_contract_spec.rb
index 2d1322df03f..d4c44038b12 100644
--- a/modules/overviews/spec/contracts/grids/create_contract_spec.rb
+++ b/modules/overviews/spec/contracts/grids/create_contract_spec.rb
@@ -69,15 +69,9 @@ RSpec.describe Grids::CreateContract, 'for Grids::Overview' do
context 'if an overview grid already exists for the project' do
before do
- scope = double('grid exists scope')
-
allow(Grids::Overview)
- .to receive(:where)
- .with(project_id: project.id)
- .and_return scope
-
- allow(scope)
.to receive(:exists?)
+ .with(project_id: project.id)
.and_return(true)
end