J
Joe Van Dyk
Hi,
I have:
class Order
def self.export_unshipped_orders
# returns a string
end
end
I want to use Mocha (http://mocha.rubyforge.org/) to fake the return
of Order.export_unshipped_orders. How can I do that?
Thanks,
Joe
I have:
class Order
def self.export_unshipped_orders
# returns a string
end
end
I want to use Mocha (http://mocha.rubyforge.org/) to fake the return
of Order.export_unshipped_orders. How can I do that?
Thanks,
Joe