Skip to content

Resolve "[Rails5] expected: "/search?search=seed_project" got: nil"

What does this MR do?

Refactor sessions_controller_spec to work both in rails4 and rails5.
Remove the stubbed request.referer method, set real header instead.

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

No.

Why was this MR needed?

Migration to Rails 5.0.

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #48013 (closed)

Edited by Rémy Coutable

Merge request reports