method
execute
execute(options, instance_variables)
public
Hide source
# File lib/spec/example/example_methods.rb, line 13 def execute(options, instance_variables) options.reporter.example_started(self) set_instance_variables_from_hash(instance_variables) execution_error = nil Timeout.timeout(options.timeout) do begin before_example run_with_description_capturing rescue Exception => e execution_error ||= e end begin after_example rescue Exception => e execution_error ||= e end end options.reporter.example_finished(self, execution_error) success = execution_error.nil? || ExamplePendingError === execution_error end