class RSpec::Core::Hooks::AfterContextHook

@private

Public Instance Methods

run(example) click to toggle source
# File lib/rspec/core/hooks.rb, line 362
        def run(example)
          example.instance_exec(example, &block)
        rescue Exception => e
          # TODO: come up with a better solution for this.
          RSpec.configuration.reporter.message <<-EOS

An error occurred in an `after(:context)` hook.
  #{e.class}: #{e.message}
  occurred at #{e.backtrace.first}

EOS
        end