Skip to content

Instantly share code, notes, and snippets.

@zachalewel
zachalewel / capybara cheat sheet
Created March 17, 2017 01:40 — forked from zhengjia/capybara cheat sheet
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')
@zachalewel
zachalewel / chapter 17 question
Created September 28, 2015 22:54
chapter 17
.
./.DS_Store
./.git
./.git/config
./.git/description
./.git/FETCH_HEAD
./.git/HEAD
./.git/hooks
./.git/hooks/applypatch-msg.sample
./.git/hooks/commit-msg.sample
@zachalewel
zachalewel / gist:ec2736c15532443f1dab
Last active August 29, 2015 05:36 — forked from AndyLampert/gist:f3541a4411dcab78c058
Set up irb and rails console to look pretty
touch ~/.irbrc
open ~/.irbrc
paste this in:
require 'rubygems'
require 'ap'
require 'irb/completion'
IRB.conf[:AUTO_INDENT]=true
require "awesome_print"