Add support for dynamic evaluation of raw responses #55

Closed
bblimke opened this Issue Oct 25, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

bblimke commented Oct 25, 2010

WebMock should support dynamic evaluation of raw response strings or IOs, using lambda or block.
i.e
stub_request(:get, "www.example.com").to_return(lambda {|request| File.read(request.uri.to_s)} )

Owner

bblimke commented Oct 25, 2010

Added in master.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment