From: "John W. Long" Date: 2005-02-10T15:24:26+09:00 Subject: Re: Building a Better Functor John W. Long wrote: > Here's my test method: > > def test_redirect__exit > exited = false > sys = Functor.new do |meth, *args| > exited = true if meth == :exit > end > redirect('test/url.html', sys) > assert(exited) > end er, sorry, this code should be: def test_redirect__exit exited = false sys = Functor.new(:exit) do exited = true end redirect('test/url.html', sys) assert(exited) end -- John Long http://wiseheartdesign.com