diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-27 12:15:57 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-28 17:33:30 +0300 |
commit | 60797a42b419841e14f50f85bf8daa2a115a72f9 (patch) | |
tree | 930ea47354df7c2e415cf77dbb727967da97296a /lib/api/helpers | |
parent | 48c51e207e4cba8a69e4ca65cba1e169d384cefa (diff) |
Ensure Gitlab::Application.routes.default_url_options are set correctly in Capybara + :js specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/helpers')
-rw-r--r-- | lib/api/helpers/related_resources_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers/related_resources_helpers.rb b/lib/api/helpers/related_resources_helpers.rb index 769cc1457fc..1f677529b07 100644 --- a/lib/api/helpers/related_resources_helpers.rb +++ b/lib/api/helpers/related_resources_helpers.rb @@ -12,7 +12,7 @@ module API end def expose_url(path) - url_options = Rails.application.routes.default_url_options + url_options = Gitlab::Application.routes.default_url_options protocol, host, port = url_options.slice(:protocol, :host, :port).values URI::HTTP.build(scheme: protocol, host: host, port: port, path: path).to_s |