Closed
Description
Actual behavior
I have the code:
class AdvertsController < ApplicationController
# PATCH /adverts/:id
def update
render :edit unless @form.valid?
end
end
I run rubocop:
ydakuka@yauhenid:~/Work/project$ bin/rails_docker rubocop spec/forms/advert_form_spec.rb
Inspecting 1 file
.
1 file inspected, no offenses detected
Expected behavior
I expected to receive the following code:
class AdvertsController < ApplicationController
# PATCH /adverts/:id
def update
render :edit if @form.invalid?
end
end