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



196
197
198
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 196

def exception
  failed_step.exception if failed_step
end

#failed?Boolean

Returns:

  • (Boolean)


183
184
185
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 183

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

#passed?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 187

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

#statusObject



191
192
193
194
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 191

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