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 ErrorTemplatesController do
|
||||
expect { delete :destroy, params: {id: error_template} }.to change(ErrorTemplate, :count).by(-1)
|
||||
end
|
||||
|
||||
expect_redirect { error_template }
|
||||
expect_redirect(:error_templates)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user