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

path.rb « runtime « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d122240225cce64a58ee5a7c7935be6bb226bc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module QA
  module Runtime
    module Path
      class << self
        def qa_root
          ::File.expand_path('../../', __dir__)
        end

        def fixtures_path
          ::File.expand_path('../fixtures', __dir__)
        end

        def fixture(*args)
          ::File.join(fixtures_path, *args)
        end

        def qa_tmp(*args)
          ::File.join([qa_root, 'tmp', *args].compact)
        end
      end
    end
  end
end