class RSpec::Core::Hooks::AfterAllHook

Public Instance Methods

display_name() click to toggle source
# File lib/rspec/core/hooks.rb, line 53
def display_name
  "after(:all) hook"
end
run(example) click to toggle source
# File lib/rspec/core/hooks.rb, line 40
        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(:all) hook.
  #{e.class}: #{e.message}
  occurred at #{e.backtrace.first}

EOS
        end