Class: CucumberToHtml::Cell::Step

Inherits:
Cucumberhtml::Cell
  • Object
show all
Defined in:
app/concepts/cucumber_to_html/cell/step.rb

Instance Method Summary collapse

Instance Method Details

#keywordObject



4
5
6
# File 'app/concepts/cucumber_to_html/cell/step.rb', line 4

def keyword
  model['keyword']
end

#nameObject



8
9
10
# File 'app/concepts/cucumber_to_html/cell/step.rb', line 8

def name
  model['name']
end

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/concepts/cucumber_to_html/cell/step.rb', line 12

def success?
  model['result']['status'] == 'passed'
end

#text_classesObject



16
17
18
19
# File 'app/concepts/cucumber_to_html/cell/step.rb', line 16

def text_classes
  # Difficult to read
  # 'text-success' if success?
end