Add missing example descriptions in new.html.haml_spec
What does this MR do and why?
ee/spec/views/trial_registrations/new.html.haml_spec.rb had 1 multi-line example with no description, so RSpec generated one from the matcher and RSpec/ExampleWithoutDescription flagged it. This MR gives it a description.
The change is one string argument on one it. The example body is untouched, and no test behaviour changes.
ee/spec/views/trial_registrations/new.html.haml_spec.rb:153, undertrial_registrations/new>for password form:submits the form to trial registrations with the glm params
RuboCop can check that a description exists, but not that it is true, and neither can the pipeline. Please read it against the body it sits above.
.rubocop_todo/rspec/example_without_description.yml still lists this file. The entry is redundant now, and the scheduled Keeps::GenerateRubocopTodos run regenerates the todo files from a full rescan and drops entries whose offense is gone.
How to set up and validate locally
The file is still listed in the RuboCop todo, so a plain rubocop run reports no offenses whether or not this change is correct. REVEAL_RUBOCOP_TODO=1 is what makes the cop see it, which is why the pipeline cannot show this and a local run can.
- Confirm the cop is satisfied on this branch, which should report no offenses
REVEAL_RUBOCOP_TODO=1 bundle exec rubocop --only RSpec/ExampleWithoutDescription ee/spec/views/trial_registrations/new.html.haml_spec.rb- Confirm the file still offends on
master, so the check above is meaningful. This should report the offense this MR removes
git show master:ee/spec/views/trial_registrations/new.html.haml_spec.rb | REVEAL_RUBOCOP_TODO=1 bundle exec rubocop --only RSpec/ExampleWithoutDescription --stdin ee/spec/views/trial_registrations/new.html.haml_spec.rbReferences
- Relates to #589138
- RSpec/ExampleWithoutDescription: https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexamplewithoutdescription