Skip to content

Instantly share code, notes, and snippets.

View Valarissa's full-sized avatar

Lauren Voswinkel Valarissa

  • Fastly
  • Sausalito, CA, USA
View GitHub Profile
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@Valarissa
Valarissa / gist:3782511
Created September 25, 2012 15:12 — forked from binarycleric/gist:3782510
Git branch in prompt
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}") "
}
green='\[\e[32;1m\]'
blue='\[\e[34;1m\]'
red='\[\e[31;1m\]'
nocolour='\[\e[0m\]'
user="\u"