Top Level Namespace

Defined Under Namespace

Modules: Bacon, Motion, Term

Instance Method Summary collapse

Instance Method Details

#color_for(error) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/motion-redgreen/spec_setup.rb', line 10

def color_for(error)
  if error =~ /ERROR/
    :red
  elsif error =~ /MISSING/
    :yellow
  else
    :red
  end
end