Skip to content

Rails 5 fix NoMethodError: undefined method 'message' for nil:NilClass in host_spec.rb

What does this MR do?

Fix following specs for Rails 5(see https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/82827897):

rspec ./ee/spec/lib/gitlab/database/load_balancing/host_spec.rb:97
rspec ./ee/spec/lib/gitlab/database/load_balancing/host_spec.rb:276
rspec ./ee/spec/lib/gitlab/database/load_balancing/host_spec.rb:313

Fix similar to !6507 (merged)

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

rails5 upgrade

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Yorick Peterse

Merge request reports