Class: Megatest::State::BlockTest

Inherits:
Test
  • Object
show all
Defined in:
lib/megatest/state.rb

Overview

:stopdoc:

Instance Attribute Summary

Attributes inherited from Test

#index, #klass, #name, #source_file, #source_line

Instance Method Summary collapse

Methods inherited from Test

#<=>, #==, #around_callbacks, #each_setup_callback, #each_teardown_callback, #hash, #id, #included_by, #inherited?, #inherited_by, #initialize, #inspect, #location_id, #tag, #tags

Constructor Details

This class inherits a constructor from Megatest::State::Test

Instance Method Details

#execute(runtime, instance) ⇒ Object



398
399
400
# File 'lib/megatest/state.rb', line 398

def execute(runtime, instance)
  runtime.record_failures(downlevel: 2) { instance.instance_exec(&@callable) }
end