Skip to content

Instantly share code, notes, and snippets.

View shirts's full-sized avatar

shirts shirts

  • probably somewhere
View GitHub Profile
@shirts
shirts / tmux.conf
Last active February 28, 2017 17:53 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# Usage:
# - Prefix is set to Ctrl-a (make sure you remapped Caps Lock to Ctrl)
# - All prefixed with Ctrl-a
# - Last used window: /
# - Last used pane: ;
# - Vertical split: v
# - Horizontal split: s
# - Previous window: [
# - Next window: ]
# - Choose session: Ctrl-s
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)

Capybara

save_and_open_page

Matchers

have_button(locator)