[rspec-users] Order guarantees of let
dchelimsky at gmail.com
Tue Aug 10 10:35:33 EDT 2010
On Aug 10, 2010, at 9:08 AM, Rick DeNatale wrote:
> On Mon, Aug 9, 2010 at 11:21 AM, David Chelimsky <dchelimsky at gmail.com> wrote:
>>> First of all, what's let! as opposed to let, I can't seem to find it
>>> via google or the latest draft of the book.
>> http://rdoc.info/projects/rspec/rspec-core - search for let and let!
>>> Second, unless let! is a new method which not only defines the
>>> memoized method but invokes it
>> That's what it is. Sort of. It gets invoked by an implicit before hook which is added - those get eval'd in the order in which they get defined.
> Makes sense. So is it not (going to be) mentioned in the book, it
> doesn't seem to be in Beta 15.0 supposedly the final beta version.
Correct. At this point in the production process (indexing) there is no room to add new technical content to the book.
> Rick DeNatale
> Blog: http://talklikeaduck.denhaven2.com/
> Github: http://github.com/rubyredrick
> Twitter: @RickDeNatale
> WWR: http://www.workingwithrails.com/person/9021-rick-denatale
> LinkedIn: http://www.linkedin.com/in/rickdenatale
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users