gojek / wrest

A fluent, easy-to-use, object oriented Ruby HTTP/REST client library with support RFC2616 HTTP caching and async calls that runs on CRuby and JRuby.
http://gojek.io
Other
234 stars 54 forks source link

Stubbing Api #15

Open kaiwren opened 14 years ago

kaiwren commented 14 years ago

Wrest should provide a HTTP driver agnostic response stubbing API. Right now, mocking Wrest based client code isn't particularly easy.

Most HTTP libraries provide test environment only tools to quickly and easily mock requests and set up expected responses. We need to add something similar.

kaiwren commented 13 years ago

See https://github.com/mdub/sham_rack - it might make a useful basis for this.