debian-mirror-gitlab/spec/support/helpers/fast_rails_root.rb

11 lines
247 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# 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