VCR says “no cassette in use” even after specifying cassette
Clash Royale CLAN TAG #URR8PPP VCR says “no cassette in use” even after specifying cassette I have an api-only RoR app with a user model. Users are authenticated via Twilio/Authy (using this gem). Each user has_one authy_user model for storing authy info, with dependent: :destroy . has_one authy_user dependent: :destroy The authy_user model has a before_destroy hook that connects to the authy api via the authy gem and deletes the user there. authy_user before_destroy The authy_user specs run just fine, and I've recorded cassettes for both registering and deleting users with the authy api. authy_user A piece of the authy_user spec: authy_user describe "delete user" do before do @user = create(:user_with_authy_user) end context "user is registered" do it "deletes user in authy and locally" do VCR.use_cassette("authy_delete_user") do expect { @user.authy_user.destroy }.to change { AuthyUser.count }.by(-1) ...