Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Created October 8, 2012 13:44
Show Gist options
  • Save shepmaster/3852605 to your computer and use it in GitHub Desktop.
Save shepmaster/3852605 to your computer and use it in GitHub Desktop.
describe 'let' do
let(:array) { [] }
it "adds" do
array << 1
array.should have(1).item
end
it "adds again" do
array << 2
array.should have(1).item
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment