Permalink
Browse files

Fix build.

  • Loading branch information...
1 parent 33969bf commit 6547e61f621a58db8d4d6c8605ee16b296a562bc @djanowski djanowski committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
@@ -21,7 +21,7 @@
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

0 comments on commit 6547e61

Please sign in to comment.