Class: Cucumber::Formatter::LegacyApi::Ast::StepInvocations

Inherits:
Array
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Instance Method Summary collapse

Instance Method Details

#exceptionObject



194
195
196
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 194

def exception
  failed_step.exception if failed_step
end

#failed?Boolean

Returns:

  • (Boolean)


181
182
183
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 181

def failed?
  any?(&:failed?)
end

#passed?Boolean

Returns:

  • (Boolean)


185
186
187
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 185

def passed?
  all?(&:passed?)
end

#statusObject



189
190
191
192
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 189

def status
  return :passed if passed?
  failed_step.status
end