Skip to content

Instantly share code, notes, and snippets.

@marcomoura
marcomoura / spec_examples.rb
Created January 27, 2012 15:05 — forked from endeepak/spec_examples.rb
rspec-best-practices-and-tips
#http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/
describe User do
subject { user }
let(:user) { User.new }
context "when name empty" do
it { should_not be_valid }
specify { user.save.should be_false }
end