Hello all, I've been trying to use caricature to stub my services in my controllers tests, now when I try to test this code: public TestController(ITestService service) { _service = service; }
when my interface is: public interface ITestService { string GetContent(); } like so: s = isolate ITestService s.when_receiving(:get_content).return('some content') c = TestController.new s I get the above mentioned error (see attachment) Any ideas what I'm doing wrong? Attachments: http://www.ruby-forum.com/attachment/4902/error.jpg -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core