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

James Mead james.mead at mail.com
Sat Sep 23 05:21:04 EDT 2006



Begin forwarded message:

> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060923/2ad19870/attachment-0001.html 


More information about the mocha-developer mailing list