On 15/12/2010, at 2:39 PM, Bayan Khalili wrote:
You can also use `let` (which some Lisp folk might recognise) for values that are used some of the time, but not in every test block. It appears to be evaluated only when called for in each block.
And only once - it is called the first time it's used in a test, and the value is stored for any subsequent references in the same test. It means you can have a bunch of things available but not have to set them up in a before :each unless they're called. Clifford Heath. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
