debian-mirror-gitlab/spec/support/relative_url.rb

9 lines
210 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
# 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