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

Clean up stubbing in projects settings view spec

Alexander Brandon Coles0a21af988fc3
diff --git a/spec/views/projects/settings/general/show.html.erb_spec.rb b/spec/views/projects/settings/general/show.html.erb_spec.rb
index ed110d75e3b..7c82926e2e9 100644
--- a/spec/views/projects/settings/general/show.html.erb_spec.rb
+++ b/spec/views/projects/settings/general/show.html.erb_spec.rb
@@ -66,9 +66,7 @@ RSpec.describe "projects/settings/general/show" do
before do
assign(:project, project)
- allow(project).to receive(:copy_allowed?).and_return(true)
allow(User).to receive(:current).and_return(admin)
- allow(view).to receive(:labelled_tabular_form_for).and_return("")
render
end
@@ -83,9 +81,7 @@ RSpec.describe "projects/settings/general/show" do
before do
assign(:project, project)
- allow(project).to receive(:copy_allowed?).and_return(true)
allow(User).to receive(:current).and_return(non_admin)
- allow(view).to receive(:labelled_tabular_form_for).and_return("")
render
end