class RSpec::Rails::SystemExampleGroup::SuppressRailsScreenshotMetadata

def raise_wrong_scope_error

def raise_wrong_scope_error
  raise RSpec::Core::ExampleGroup::WrongScopeError,
        "`metadata` is not available from within an example " \
        "(e.g. an `it` block) or from constructs that run in the " \
        "scope of an example (e.g. `before`, `let`, etc). It is " \
        "only available on an example group (e.g. a `describe` or "\
        "`context` block)"
end