Skip to content

Commit

Permalink
Add nil driver check
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed May 12, 2015
1 parent 19fde47 commit a6f835e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/protractor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
describe 'client side scripts' do

before do
@driver = Selenium::WebDriver.for :firefox
@driver = Selenium::WebDriver.for :firefox
raise 'Driver is nil!' unless @driver

# set script timeout for protractor client side javascript
# https://github.com/angular/protractor/issues/117
Expand Down

0 comments on commit a6f835e

Please sign in to comment.