search for: xmlrpcagent

Displaying 1 result from an estimated 1 matches for "xmlrpcagent".

2006 Apr 20
11
dynamic mock object anyone?
Hi guys, got this problem with creating such a thing... hope anyone could help.. the problem: ok, now i have this mock object that would simulate a external rpc call. eg require ''models/xmlrpc_agent'' class XmlrpcAgent def create(params) 200 end end but the value of the value returned is fixed. which is quite hard for me to test the controller when different values are returned from the rpc call.... is there a way to make the number returned dynamic?? Dynamic in the sense that i can pre-define the re...