Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created August 19, 2012 14:00
Show Gist options
  • Select an option

  • Save takkanm/3395011 to your computer and use it in GitHub Desktop.

Select an option

Save takkanm/3395011 to your computer and use it in GitHub Desktop.
$ cat let.rb
describe do
let!(:a) { puts 'first let' }
before { puts 'before' }
let!(:b) { puts 'second let' }
it { true.should be_true }
end
$ rspec let.rb
first let
before
second let
.
Finished in 0.00272 seconds
1 example, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment