module RSpec::Rails::SystemExampleGroup

def app

Delegates to `Rails.application`.
def app
  ::Rails.application
end

def driven_by(driver, **driver_options, &blk)

def driven_by(driver, **driver_options, &blk)
  @driver = ::ActionDispatch::SystemTestCase.driven_by(driver, **driver_options, &blk).tap(&:use)
end

def initialize(*args, &blk)

def initialize(*args, &blk)
  super(*args, &blk)
  @driver = nil
  self.class.before do
    # A user may have already set the driver, so only default if driver
    # is not set
    driven_by(DEFAULT_DRIVER) unless @driver
  end
end

def metadata

Other tags:
    Private: -
def metadata
  @metadata ||= SuppressRailsScreenshotMetadata.new
end

def method_name

Other tags:
    Private: -
def method_name
  @method_name ||= [
    self.class.name.underscore,
    RSpec.current_example.description.underscore
  ].join("_").tr(CHARS_TO_TRANSLATE.join, "_").byteslice(0...200).scrub("") + "_#{rand(1000)}"
end

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