Different scopes. The blocks passed to describe and context are eval'd in the scope of the example group (class). The blocks passed to let, subject, it, before, and after are eval'd in the scope of an instance of that class.
HTH Sent from my iPhone On Nov 3, 2012, at 5:20 PM, Javix <[email protected]> wrote: > Sorry for the typo, NOT visible in the last block :) > > On Saturday, November 3, 2012 11:18:28 PM UTC+1, Javix wrote: >> >> What I really can't get is WHY 'client' defined in let block is visible >> before but in that block ? > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msg/rspec/-/2FPfIqC680sJ. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "rspec" 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 https://groups.google.com/groups/opt_out.
