Fix rubocop offenses

This commit is contained in:
Alexander Meindl 2024-05-17 09:12:23 +02:00
parent 71331a916e
commit 90f4e613e2

View File

@ -111,7 +111,7 @@ module CrudControllerBase
if @crud[:create_redirect_to]
assert_redirected_to @crud[:create_redirect_to]
else
assert_response 302
assert_response :found
end
entity = @crud[:entity].class.last
@ -190,7 +190,7 @@ module CrudControllerBase
if @crud[:update_redirect_to]
assert_redirected_to @crud[:update_redirect_to]
else
assert_response 302
assert_response :found
end
@crud[:entity]&.reload