Welcome to mirror list, hosted at ThFree Co, Russian Federation.

relative_url.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 72e3ccce75bc44d37f9b59bc08c544ec5c1eecbe (plain)
1
2
3
4
5
6
7
8
# Fix route helpers in tests (e.g. root_path, ...)
module RelativeUrl
  extend ActiveSupport::Concern

  included do
    default_url_options[:script_name] = Rails.application.config.relative_url_root
  end
end