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
This commit is contained in:
Grzegorz Bizon 2018-08-31 10:07:00 +00:00
commit 5f047c1e2d

View file

@ -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