Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a repo to explore a solution to vcr/vcr#284.

This repo contains an example of generating dynamic response data based on request URI values. This implementation is not officially supported by VCR and uses private method hooks, so YMMV.

With no previous recordings

Requesting for "testd6ece47420e08c9aef1503a637d336e9" callback value
Received "testd6ece47420e08c9aef1503a637d336e9" method.
.Requesting for 'testmethod' callback value
Received "testmethod" method.
.

Finished in 0.80622 seconds
2 examples, 0 failures

With previous recordings

Requesting for 'testmethod' callback value
Received "testmethod" method.
.Requesting for "testd23db33bd815b243fcc9bb0702e2b8ac" callback value
Received "testd23db33bd815b243fcc9bb0702e2b8ac" method.
.

Finished in 0.03636 seconds
2 examples, 0 failures

About

Example implementation using VCR to dynamically set response body values from request URI values

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages