Skip to content

Instantly share code, notes, and snippets.

View lukewendling's full-sized avatar

Luke Wendling lukewendling

View GitHub Profile
@ernsheong
ernsheong / before_spec.rb
Created August 28, 2012 04:05
Testing behavior of before vs. before :each vs before :all
require 'spec_helper'
$count = 0
$count_each = 0
$count_all = 0
shared_examples_for "before :each" do
it { should == 1 }
it { should == 2 }
end
@lukewendling
lukewendling / gist:1621689
Created January 16, 2012 16:37 — forked from dx7/gist:1333785
Installing ruby-debug with ruby-1.9.3-p0 and Bundler
# Install with:
# bash < <(curl -L https://raw.github.com/gist/1621689)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
#
# > bundle -v
# > Bundler version 1.0.21
echo "Installing ruby-debug with ruby-1.9.3-p0 and Bundler ..."