Groups
Groups
Sign in
Groups
Groups
groupiter-dev
Conversations
About
Send feedback
Help
let!
1 view
Skip to first unread message
Alex Chaffee
unread,
Dec 5, 2012, 7:05:01 PM
12/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to groupiter-dev
RSpec has a let! method:
# Just like `let`, except the block is invoked by an implicit `before`
# hook. This serves a dual purpose of setting up state and providing a
# memoized reference to that state.
So we can stop doing
let(:foo){...)
before{foo}
and just do
let!(:foo){...}
--
Alex Chaffee -
al...@stinky.com
http://alexchaffee.com
http://codelikethis.com
http://twitter.com/alexch
Reply all
Reply to author
Forward
0 new messages