[QA] Require Pathname in qa/qa/page/view.rb

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-08-30 18:09:00 +02:00
parent 6afdf74238
commit d4dd4aa63b
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

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