method
execute_examples
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
execute_examples(success, instance_variables, examples, run_options)
private
Hide source
# File lib/spec/example/example_group_methods.rb, line 209 def execute_examples(success, instance_variables, examples, run_options) return [success, instance_variables] unless success after_all_instance_variables = instance_variables examples.each do |example| example_group_instance = new(example.description,example.options,&example_implementations[example]) success &= example_group_instance.execute(run_options, instance_variables) after_all_instance_variables = example_group_instance.instance_variable_hash end return [success, after_all_instance_variables] end