Module: CucumberGrowler::InstanceMethods

Defined in:
lib/cucumber_growler.rb

Instance Method Summary collapse

Instance Method Details

#icon_for(status) ⇒ Object



30
31
32
33
34
35
36
37
38
39
# File 'lib/cucumber_growler.rb', line 30

def icon_for(status)
  case status
  when :passed
    'success'
  when :pending, :undefined, :skipped
    'pending'
  when :failed
    'failed'
  end
end

#title_for(status) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/cucumber_growler.rb', line 41

def title_for(status)
  case status
  when :passed
    'Features passed!'
  when :pending
    'Some steps are pending...'
  when :undefined
    'Some undefined steps...'
  when :skipped
    'Some steps skipped...'
  when :failed
    'Failures occurred!'
  end
end