Closed etagwerker closed 8 years ago
Thanks for looking into this. I would suggest looking at vcr's implementation of this (on which this recursive code was originally based). I bet they have found the right way around it.
@ghempton Done! Vcr's current implementation doesn't generate this warning. Here is the PR ^
@ghempton, can you cut a new version on ruby gems which includes this change?
Sure
Just pushed 0.0.5
Thanks !
Hey @ghempton!
Thank you for developing this gem! It's been very useful so far. :+1:
The only issue that I've found is that it shows this warning:
This happens because Rspec has deprecated the usage of
metadata[:example_group]
- See: https://github.com/rspec/rspec-rails/issues/1035I tried to write a PR to fix this but I couldn't find a decent way to keep the current tree structure for the recordings.
Instead of using the recursive code that generates the nested folder, I could write an implementation that uses
metadata[:full_description]
to generate the recording file. The problem with this solution is that it wouldn't be backwards compatible. :(What do you think?
Thanks!