lib/gurke/step.rb in gurke-3.3.4 vs lib/gurke/step.rb in gurke-3.3.5

- old
+ new

@@ -64,11 +64,11 @@ result = StepResult.new self, scenario, :aborted raise rescue StepPending => e scenario.pending! e result = StepResult.new self, scenario, :pending, e - rescue Exception => e # rubocop:disable RescueException + rescue Exception => e # rubocop:disable Lint/RescueException scenario.failed! e result = StepResult.new self, scenario, :failed, e ensure reporter.invoke :end_step, result, scenario end @@ -86,11 +86,10 @@ StepResult.new self, scenario, :passed end end - # class StepResult attr_reader :step, :exception, :state, :scenario def initialize(step, scenario, state, err = nil) @step = step @@ -98,10 +97,10 @@ @scenario = scenario @exception = err end Step.public_instance_methods(false).each do |mth| - class_eval <<-RUBY, __FILE__, __LINE__ + 1 + class_eval <<-RUBY, __FILE__, __LINE__ + 1 # rubocop:disable Style/DocumentDynamicEvalDefinition def #{mth}(*args) @step.send(:#{mth}, *args); end RUBY end def failed?