More sophisticated request matches #43

Closed
robfletcher opened this Issue Oct 20, 2011 · 2 comments

Projects

None yet

2 participants

@robfletcher
Collaborator

Should be able to match based on individual headers, regex matches, specific request params, etc.

I'm not sure if this is helpful or not, but I recently rewrote this part of VCR and blogged about it:

http://myronmars.to/n/dev-blog/2011/10/custom-request-matchers-in-vcr-2-0

There may be some ideas in there that'll be useful for betamax.

Collaborator

That's interesting, thanks. It appears to be similar to the approach I've already taken in https://github.com/robfletcher/betamax/blob/master/src/main/groovy/betamax/MatchRule.groovy I just haven't opened it up to allow the use of custom MatchRules yet.

@robfletcher robfletcher pushed a commit that closed this issue Oct 31, 2013
Rob Fletcher Test proving that custom match rules are possible
Fixes #43
ce631f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment