stub_request(:any, //)
do_work
a_request(:get, "http://example.com/").should have_been_made
HTH,
Evgeniy
On 11/22/2011 5:35 PM, Bartosz Blimke wrote:
> Webmock by design follows stub-execute-verify paradigm and it separates
> stubs
> from expectations. Each of them can be used independently.
>
> You can however set expectations on already created stub if you want to
> avoid duplication.
>
> stub = stub_request(:get, "www.example.com <http://www.example.com>")
> # ... make requests ...
> stub.should have_been_requested
>
> Bartosz
>
>
>
> 2011/11/22 Thibaut Barr�re <thibaut...@gmail.com
> <mailto:thibaut...@gmail.com>>