Skip to content

Instantly share code, notes, and snippets.

View michaelwebb76's full-sized avatar

Michael Webb michaelwebb76

View GitHub Profile
@cstrahan
cstrahan / quality.rake
Created April 18, 2012 23:22
A hackish rake task for checking code quality with reek and cane.
# Colors
escape = -> n { STDOUT.tty? ? "\033[#{n}m" : "" }
red = escape[31]
green = escape[32]
yellow = escape[33]
blue = escape[34]
magenta = escape[35]
cyan = escape[36]
reset = escape[ 0]
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')