Skip to content

Instantly share code, notes, and snippets.

@jonhoman
Created January 11, 2011 03:46
Show Gist options
  • Save jonhoman/773984 to your computer and use it in GitHub Desktop.
Save jonhoman/773984 to your computer and use it in GitHub Desktop.
let(:test) { puts "Hello" }
it "should print hello" do
test
end
it "should not print hello" do
end
#output
Hello..
# let is only invoked when the "variable" is used in an example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment