Fix build.

This commit is contained in:
Damian Janowski 2012-03-16 15:04:35 -03:00
parent 33969bfdc0
commit 6547e61f62
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ RSpec.configure do |config|
example.run
# example is just a Proc, @example is the current RSpec::Core::Example
e = @example.instance_variable_get('@exception') # usually nil
if (e.is_a?(Selenium::WebDriver::Error::UnknownError) &&
if (defined?(Selenium::WebDriver::Error::UnknownError) && e.is_a?(Selenium::WebDriver::Error::UnknownError) &&
e.message == 'docElement is null' && (attempts += 1) < 5)
@example.instance_variable_set('@exception', nil)
redo