Method: RSpec::Core::Example#fail_with_exception

Defined in:
lib/rspec/core/example.rb

#fail_with_exception(reporter, exception) ⇒ Object

Used internally to set an exception and fail without actually executing the example when an exception is raised in before(:all).



163
164
165
166
167
# File 'lib/rspec/core/example.rb', line 163

def fail_with_exception(reporter, exception)
  start(reporter)
  set_exception(exception)
  finish(reporter)
end