-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VCR creates downcased folder names #68
Comments
Thanks for the comment. As you indicated, it's downcased and hasn't provided the way to maintain the original case. https://github.com/parroty/exvcr/blob/v0.8.1/lib/exvcr/mock.ex#L116 If it doesn't break existing tests, it may be an option to provide some way (like providing a optional setting) to maintain the case. |
@parroty the motivation behind this is that it's easy to run into problems with case sensitive / case insensitive file systems. I, for one, just did and lost a few hours yesterday debugging the issue with travis build. Per travis docs:
I ran exactly into this problem. I got used to naming my cassette folders after test modules, e.g.
I think the best way to solve this would be to not downcase at all. However, making this optional is a good way resolve this in a short term (with default to perform downcase, e.g. no behaviour change). Yet in the long term I think a few additional things should happen:
Let me know if this makes sense. |
Thanks for the explanation and sorry being late to respond. |
I use the following naming for my cassettes:
The above means I want to keep
count.json
insideStripe.PlanTest
folder, which is a name for my test module.However VCR down cases the name of a folder to:
stripe.plantest
. Can this be changed to not perform downcase on write?The text was updated successfully, but these errors were encountered: