From: John Wilger Date: 2005-10-02T01:27:21+09:00 Subject: Re: Flexmock question On 10/1/05, Jon A. Lambert wrote: > How do I use flexmock to mock a Socket? > > It seems to trip up on the defining a method named 'send' on the object. You can't mock out the #send method on a FlexMock object, because that method is already defined (the usual Object#send method). Your choices here are to either reopen the FlexMock class and undef the #send method (probably not a good idea), or just create your own MockSocket class and define the methods you need in it. -- Regards, John Wilger ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don't know," Alice answered. "Then," said the cat, "it doesn't matter." - Lewis Carrol, Alice in Wonderland