RSpec redirect: Fix erroneous test cases for DELETE
This commit is contained in:

committed by
Sebastian Serth

parent
740fc85bce
commit
8b37242a58
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user