Skip to content

Commit 8306553

Browse files
committed
[rb] allow running unit tests in RubyMine and see bazel assets
1 parent 6b00faa commit 8306553

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rb/spec/unit/selenium/webdriver/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def with_env(hash)
5353
end
5454
Selenium::WebDriver.logger(ignored: :logger_info)
5555

56+
root = Pathname.new('../../../../../../').realpath(__FILE__)
57+
$LOAD_PATH.insert(0, root.join('bazel-bin/rb/lib').to_s) if File.exist?(root.join('bazel-bin/rb/lib'))
58+
5659
c.include Selenium::WebDriver::UnitSpecHelper
5760

5861
c.filter_run focus: true if ENV['focus']

0 commit comments

Comments
 (0)