repeat calls to the same url

16 views
Skip to first unread message

Karl Baum

unread,
Nov 18, 2010, 1:39:07 PM11/18/10
to vcr-...@googlegroups.com
I've noticed that if i call the same url 2 X within the same cucumber scenario, it will always return the same thing. For example, in my test, i hit an api to retrieve some email addresses. I then add an email using the api and call the api to retrieve those email addresses. The second time there should be 6 email addresses but when i run using vcr, it returns 5 both times.

Thanks!

-karl

Myron Marston

unread,
Nov 18, 2010, 1:49:52 PM11/18/10
to VCR Rubygem
Do you have a code example you can post that demonstrates the
problem? That communicates what you're doing for easier than trying
to explain with words. I can answer your question better once I see
code.

Also, checkout the request matching cuke[1]. It explains how VCR's
request matching facility works with examples.

Myron


http://relishapp.com/myronmarston/vcr/dir/cassettes/request-matching

Karl Baum

unread,
Nov 18, 2010, 1:55:16 PM11/18/10
to vcr-...@googlegroups.com
I think it works.. my mistake :-).
Reply all
Reply to author
Forward
0 new messages