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


199
200
201
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 199

def exception
  failed_step.exception if failed_step
end

#failed?Boolean


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

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

#passed?Boolean


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

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

#statusObject


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

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