method
run_examples
1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
run_examples(success, instance_variables, examples, run_options)
private
Hide source
# File lib/spec/example/example_group_methods.rb, line 207 def run_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, &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