[mocha-developer] Fwd: [PATCH] Remove warning in expectation.rb

James Mead jamesmead44 at gmail.com
Sun Sep 24 17:07:33 EDT 2006


> *From: *Xavier Shay <xshay at rhnh.net>
> *Date: *23 September 2006 05:53:57 BDT
> *To: *james.mead at mail.com
> *Subject: **[PATCH] Remove warning in expectation.rb*
>
> Hi James,
> Please find below a one line addition to lib/mocha/expectation.rb to
> remove the following warning:
>
> mocha-0.3.2/lib/mocha/expectation.rb:32: warning: instance variable @yield
> not initialized
>
> Sorry I don't have a diff for you, can't seem to connect to
> svn://rubyforge.org atm
>
> Just add the following to the contructor at line 25:
> @yield = nil
>
> Cheers,
> Xavier
>
>
Many thanks - I've made the change you suggest in HEAD (revision 58). I hope
to do a release in the next few days.

Thanks.
-- 
James.
http://blog.floehopper.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060924/bdf0df9a/attachment.html 


More information about the mocha-developer mailing list