lukebyrne/betfair — pull request #5 by regularfry (2012-03-13 07:30:16+00:00)
Title: fix the get_mu_bets specs.

Hi,

I found what was wrong with the get_mu_bets spec. Basically the savon mocks are *slightly* less clever than they should be, and they get confused by switching between snake_case and camelCase. Of all the options available, it looks like:

savon.expects(:get_mu_bets)

is the only one which *doesn't* work - it doesn't know that :get_mu_bets corresponds to the getMUBets API call. I've given two alternatives which do work; I'd suggest converting to the camelCase version in future, as it's less ambiguous.