Skip to content

Instantly share code, notes, and snippets.

@mackstar
Created March 27, 2015 15:57
Show Gist options
  • Save mackstar/a7d213198509c6362ea2 to your computer and use it in GitHub Desktop.
Save mackstar/a7d213198509c6362ea2 to your computer and use it in GitHub Desktop.
def after_test_step(test_step, result)
blink1 = Blink1.new
blink1.open
if result.passed?
`say -v Kathy "You're Awesome"`
blink1.set_rgb(34, 27, 230)
elsif result.failed?
`echo 'Test Failed' | terminal-notifier -sound default`
`say "You suck"`
blink1.set_rgb(222, 38, 35)
else
blink1.set_rgb(222, 188, 35)
end
sleep 3
blink1.off
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment