testing tests and debugging debug

6 views
Skip to first unread message

Dimitri Pekarovsky

unread,
Jul 23, 2018, 9:42:26 AM7/23/18
to webmock-users
Hi, can I list all stubs defined in some point of my tests?

Bartosz Blimke

unread,
Jul 23, 2018, 5:43:39 PM7/23/18
to webmoc...@googlegroups.com
While it's not a clean solution, you can do the following to print the registered stubs:

WebMock::RequestSignatureSnippet.new(WebMock::RequestSignature.new(:get, "http://www.example.com")).request_stubs

Bartosz



pon., 23 lip 2018 o 15:42 Dimitri Pekarovsky <dimitri.p...@gmail.com> napisał(a):
Hi, can I list all stubs defined in some point of my tests?

--

---
You received this message because you are subscribed to the Google Groups "webmock-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webmock-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages