I’m writing a gem to add support for SOAP services to Ruby (I hate myself for doing this but, you know, legacy systems are feeling lonely and gotta talk to someone), and I’m wondering if there’s a way I can write some tests using Savon as a client library.
My question is: how can I tell Savon to call the WebService using Rack::Test?
The gem sources are hosted here: https://github.com/elementar/shapewear
I ended up using the WebMock gem. Here’s the result:
https://github.com/elementar/shapewear/blob/master/spec/shapewear/savon_usage_spec.rb