Naming
When inserting or using a cassette, the first argument is the cassette name. You can use any string for the name. If you use the default :file_system
storage backend, VCR will sanitize the string before using it as a file name, so that it is a file-system friendly file name.
Name sanitizing
Given a file named "name_sanitizing.rb" with:
And the directory "cassettes" does not exist
When I run ruby name_sanitizing.rb
Then the file "cassettes/Fee_Fi_Fo_Fum.yml" should contain "Hello".
Last updated