RSpec redirect: Fix erroneous test cases for DELETE

This commit is contained in:
Sebastian Serth
2023-11-16 13:51:20 +01:00
committed by Sebastian Serth
parent 740fc85bce
commit 8b37242a58
2 changed files with 2 additions and 2 deletions

View File

@ -71,6 +71,6 @@ RSpec.describe ErrorTemplateAttributesController do
expect { delete :destroy, params: {id: error_template_attribute} }.to change(ErrorTemplateAttribute, :count).by(-1) expect { delete :destroy, params: {id: error_template_attribute} }.to change(ErrorTemplateAttribute, :count).by(-1)
end end
expect_redirect { error_template_attribute } expect_redirect(:error_template_attributes)
end end
end end

View File

@ -71,6 +71,6 @@ RSpec.describe ErrorTemplatesController do
expect { delete :destroy, params: {id: error_template} }.to change(ErrorTemplate, :count).by(-1) expect { delete :destroy, params: {id: error_template} }.to change(ErrorTemplate, :count).by(-1)
end end
expect_redirect { error_template } expect_redirect(:error_templates)
end end
end end