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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/runtime/path.rb')
-rw-r--r--qa/qa/runtime/path.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/qa/qa/runtime/path.rb b/qa/qa/runtime/path.rb
index fd451f2df19..ae1b26ca84a 100644
--- a/qa/qa/runtime/path.rb
+++ b/qa/qa/runtime/path.rb
@@ -3,14 +3,18 @@
module QA
module Runtime
module Path
- extend self
+ class << self
+ def qa_root
+ ::File.expand_path('../../', __dir__)
+ end
- def qa_root
- ::File.expand_path('../../', __dir__)
- end
+ def fixtures_path
+ ::File.expand_path('../fixtures', __dir__)
+ end
- def fixtures_path
- ::File.expand_path('../fixtures', __dir__)
+ def fixture(*args)
+ ::File.join(fixtures_path, *args)
+ end
end
end
end