Skip to content

Commit

Permalink
[rb] allow running webdriver specs via IntelliJ without errors from p…
Browse files Browse the repository at this point in the history
…ending
  • Loading branch information
titusfortner committed Jun 5, 2019
1 parent 117b05b commit 69ee921
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rb/spec/integration/selenium/webdriver/remote/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
module Selenium
module WebDriver
describe Element, only: {driver: :remote} do
around do |example|
before do
driver.file_detector = ->(filename) { File.join(__dir__, filename) }
example.run
end

after do
driver.file_detector = nil
end

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if guards.exclude.any?
skip 'Bug Prevents Execution.'
elsif guards.except.satisfied.any? || guards.only.unsatisfied.any?
pending 'Guarded.'
ENV['SKIP_PENDING'] ? skip('Skip Guarded Spec') : pending('Guarded.')
end
end

Expand Down

0 comments on commit 69ee921

Please sign in to comment.