diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-08-31 10:07:00 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-08-31 10:07:00 +0000 |
commit | 5f047c1e2d44fb3627c1cc97183b185b2fda6bd2 (patch) | |
tree | 88645126bbc72c10b833ea1d2d45c49f08fb7650 | |
parent | 11b1d2e9dd49b25e7aca2b134eac8f8eedef8e65 (diff) | |
parent | d4dd4aa63bc0bc30f71b13fd6d21f55393b25bdb (diff) | |
download | gitlab-ce-5f047c1e2d44fb3627c1cc97183b185b2fda6bd2.tar.gz |
Merge branch '46673-qa-sanity-tests-fail-with-uninitialized-constant-qa-page-view-pathname-error' into 'master'
Resolve "qa sanity tests fail with 'uninitialized constant QA::Page::View::Pathname' error"
Closes #46673
See merge request gitlab-org/gitlab-ce!21437
-rw-r--r-- | qa/qa/page/view.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/page/view.rb b/qa/qa/page/view.rb index b2a2da4dbf3..c59fad2e223 100644 --- a/qa/qa/page/view.rb +++ b/qa/qa/page/view.rb @@ -1,3 +1,5 @@ +require 'pathname' + module QA module Page class View @@ -9,7 +11,7 @@ module QA end def pathname - @pathname ||= Pathname.new(::File.join(__dir__, '../../../', @path)) + @pathname ||= ::Pathname.new(::File.join(__dir__, '../../../', @path)) .cleanpath.expand_path end |