On Mon, May 07, 2007 at 11:05:25PM -0700, Josh Susser wrote:
> I just saw Marcel's change to assert_difference that changes the
> method API to take a string param that is evaled in a lambda.
>
> http://dev.rubyonrails.org/changeset/6693
>
> I much preferred the old API, since it's simple enough to pass a
> lambda. Passing a string means the lambda is in the wrong scope and
> doesn't have access to objects in the test case scope.
Wouldn't lambda { eval(expression, block.binding) } take care of that?
marcel
--
Marcel Molina Jr. <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---