Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Feb 19, 2014
1 parent fbe29a9 commit b7305e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/safari/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def quit

@server.stop
@safari.stop
@extensions && @extensions.uninstall
@extensions.uninstall
end

def driver_extensions
Expand Down
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/safari/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def uninstall

install_directory.rmtree if install_directory.exist?
@backup.restore_all

nil
ensure
@installed = false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Selenium
module WebDriver
module Safari

describe 'with custom extension', focus: true do
describe 'with custom extension' do
before { GlobalTestEnv.quit_driver }
after { @driver.quit if @driver }

Expand Down

0 comments on commit b7305e3

Please sign in to comment.