class RSpecStepwise::WholeListExample
Public Class Methods
new(example_group_class, descriptions, metadata)
click to toggle source
Calls superclass method
# File lib/two-step/stepwise.rb, line 9 def initialize(example_group_class, descriptions, metadata) super @reporter = ApatheticReporter.new build_example_block end
Public Instance Methods
build_example_block()
click to toggle source
# File lib/two-step/stepwise.rb, line 23 def build_example_block #variables of concern: reporter, instance @example_block = proc do begin self.class.filtered_examples.inject(true) do |success, example| break if RSpec.wants_to_quit example.extend StepExample unless success example.metadata[:pending] = true example.metadata[:execution_result][:pending_message] = "Previous step failed" end succeeded = with_indelible_ivars do example.run(self, reporter) end RSpec.wants_to_quit = true if self.class.fail_fast? && !succeeded success && succeeded end end end end
finish(reporter)
click to toggle source
Calls superclass method
# File lib/two-step/stepwise.rb, line 19 def finish(reporter) super(@reporter) end
start(reporter)
click to toggle source
Calls superclass method
# File lib/two-step/stepwise.rb, line 15 def start(reporter) super(@reporter) end