diff options
Diffstat (limited to 'qa/qa/runtime/path.rb')
-rw-r--r-- | qa/qa/runtime/path.rb | 16 |
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 |