diff options
-rw-r--r-- | qa/qa/runtime/browser.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb index 2226c56c012..16fa3a1bd23 100644 --- a/qa/qa/runtime/browser.rb +++ b/qa/qa/runtime/browser.rb @@ -6,7 +6,7 @@ require 'selenium-webdriver' module QA module Runtime class Browser - include Scenario::Actable + include QA::Scenario::Actable def initialize self.class.configure! @@ -63,9 +63,11 @@ module QA block.call if block_given? rescue + raise if block.nil? + # RSpec examples will take care of screenshots on their own # - unless block.binding.receiver.class < RSpec::Core::ExampleGroup + unless block.binding.receiver.is_a?(RSpec::Core::ExampleGroup) Capybara::Screenshot.screenshot_and_save_page end |