method
execute

execute(options, instance_variables)
public
Hide source
# File lib/spec/example/example_methods.rb, line 44 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_each_example eval_block rescue Exception => e execution_error ||= e end begin after_each_example rescue Exception => e execution_error ||= e end end options.reporter.example_finished(self, execution_error) success = execution_error.nil? || ExamplePendingError === execution_error end