diff --git a/test/crud_controller_base.rb b/test/crud_controller_base.rb index ee2b06a8..8090d3b8 100644 --- a/test/crud_controller_base.rb +++ b/test/crud_controller_base.rb @@ -190,7 +190,7 @@ module CrudControllerBase assert_response 302 end - @crud[:entity].reload + @crud[:entity]&.reload if @crud[:update_assert].present? @crud[:update_assert].each do |name|