From: Fernando Guillen Date: 2010-08-03T01:22:48+09:00 Subject: Re: Mocking a method with a block Hi again people, Following your suggestions I am trying to build an small library to abstract this behavior on a reusable way: * http://github.com/fguillen/NetPopMock My problem now is that I'm not able to use the _raw_mails_ array sent on the **NetPopMock.fake** call See the test example: * http://github.com/fguillen/NetPopMock/blob/master/test/net_pop_mock_test.rb#L15 Into the mocked class: * http://github.com/fguillen/NetPopMock/blob/master/net_pop_mock.rb#L30 Jesus was the first one suggesting me to use _class_eval_ and I told him that I thought I was enough information to work on my self.. well that was not true.. I need help again :) I know the solution is in a mix of _eval_ and _binding_ but I don't find it. Thanks again f. -- Posted via http://www.ruby-forum.com/.