Fix Rspec error when using non-default port

Prevent test failures when GitLab is configured to use a port other than
80.