| Module | Spec::Example::ExampleMethods |
| In: |
lib/selenium/rspec/rspec_extensions.rb
|
| execution_error | [R] |
# File lib/selenium/rspec/rspec_extensions.rb, line 54
54: def actual_failure?
55: case execution_error
56: when nil
57: false
58: when Spec::Example::ExamplePendingError,
59: Spec::Example::PendingExampleFixedError,
60: Spec::Example::NoDescriptionError
61: false
62: else
63: true
64: end
65: end
# File lib/selenium/rspec/rspec_extensions.rb, line 72
72: def pending_for_browsers(*browser_regexps, &block)
73: actual_browser = selenium_driver.browser_string
74: match_browser_regexps = browser_regexps.inject(false) do |match, regexp|
75: match ||= actual_browser =~ Regexp.new(regexp.source, Regexp::IGNORECASE)
76: end
77: if match_browser_regexps
78: pending "#{actual_browser.gsub(/\*/, '').capitalize} does not support this feature yet"
79: else
80: yield
81: end
82: end