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

fast_rails_root.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1510fe0825c3e3a52fee90929101c2e41af2d798 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# For specs which don't load Rails, provide a path to Rails root
module FastRailsRoot
  RAILS_ROOT = File.absolute_path("#{__dir__}/../../..")

  def rails_root_join(*args)
    File.join(RAILS_ROOT, *args)
  end
end