diff --git a/lib/ferrum/page.rb b/lib/ferrum/page.rb index d8362af2..0e34ff23 100644 --- a/lib/ferrum/page.rb +++ b/lib/ferrum/page.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "forwardable" +require "pathname" require "ferrum/event" require "ferrum/mouse" require "ferrum/keyboard" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 303b7a75..9f94527b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,6 +2,7 @@ require "bundler/setup" require "rspec" +require "pathname" PROJECT_ROOT = File.expand_path("..", __dir__) %w[/lib /spec].each { |p| $LOAD_PATH.unshift(p) }