First, I deleted /home/rails/code/server_charge/01/spec/vcr_cassettes
in your working project to successfully pass the test, which generated:
Then, I overwrote this file containing the VCR output generated by the successful test run
with the file from my non-working project containing the VCR output generated by the failed test
run. Running the test again in your working project resulted in a test failure.
As expected, Rspec utilized the VCR file to replay the HTTP traffic.
Then, I deleted the vcr_cassettes directory in my non-working project to
remove the possibility of Rspec utilizing any VCR history.
However, running the test in my non-working project still generated the same failure.
Then, I performed the following steps:
1) Overwrote the Gemfile in my non-working project with the Gemfile in your working project.
2) Deleted Gemfile.lock in my non-working project.
bundle in my non-working project.
rspec spec/models/stripe_token_spec.rb in my non-working project.
This generated a successful test run in my non-working project.
Then, I overwrote the Gemfile in my non-working project (your Gemfile) with my original Gemfile,
performed steps 2-4, and successfully passed the test. So, I was unable to determine
the cause of the failure.