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

[#60144] fixed types controller test

Eric Schubert9850e04e0b25
diff --git a/spec/controllers/types_controller_spec.rb b/spec/controllers/types_controller_spec.rb
index 15bbc7bbc91..1a01a7ef299 100644
--- a/spec/controllers/types_controller_spec.rb
+++ b/spec/controllers/types_controller_spec.rb
@@ -41,8 +41,8 @@ RSpec.describe TypesController do
is_for_all: true)
end
let(:custom_field_2) { create(:work_package_custom_field) }
- let(:status_0) { create(:status) }
- let(:status_1) { create(:status) }
+ let(:status_old) { create(:status) }
+ let(:status_new) { create(:status) }
context "with an unauthorized account" do
let(:current_user) { create(:user) }
@@ -174,8 +174,8 @@ RSpec.describe TypesController do
let!(:existing_type) { create(:type, name: "Existing type") }
let!(:workflow) do
create(:workflow,
- old_status: status_0,
- new_status: status_1,
+ old_status: status_old,
+ new_status: status_new,
type_id: existing_type.id)
end
@@ -218,7 +218,6 @@ RSpec.describe TypesController do
it { expect(response).to have_http_status(:ok) }
it { expect(response).to render_template "edit" }
- it { expect(response).to render_template "types/form/_settings" }
it { expect(response.body).to have_css "input[@name='type[name]'][@value='My type']" }
it { expect(response.body).to have_css "input[@name='type[is_milestone]'][@value='1'][@checked='checked']" }
end