module RSpec::Rails::SystemExampleGroup

def passed?

for the SystemTesting Screenshot situation
def passed?
  return false if RSpec.current_example.exception
  return true unless defined?(::RSpec::Expectations::FailureAggregator)
  failure_notifier = ::RSpec::Support.failure_notifier
  return true unless failure_notifier.is_a?(::RSpec::Expectations::FailureAggregator)
  failure_notifier.failures.empty? && failure_notifier.other_errors.empty?
end