[QA] Require Pathname in qa/qa/page/view.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
6afdf74238
commit
d4dd4aa63b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue