psych icon indicating copy to clipboard operation
psych copied to clipboard

Psych::BadAlias Unknown alias

Open dfischer opened this issue 11 years ago • 2 comments

I have a test using Capybara, RSpec, VCR and I get the following error:

2) Cancelling accounts Should notify the user that the account has been cancelled
     Failure/Error: @subscription.save_with_payment
     Psych::BadAlias:
       Unknown alias: 70311949835900
     # ./app/models/subscription.rb:69:in `save_with_payment'
     # ./spec/features/cancelling_account_spec.rb:14:in `block (2 levels) in <top (required)>'

It's failing on this line:

    customer = Stripe::Customer.create description: user.email, plan: plan.slug, card: stripe_card_token, email: user.email

ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0]

dfischer avatar Jun 05 '13 00:06 dfischer

Deleting all my VCR data and then doing my suite with the new ruby version (installed today) fixed it.

dfischer avatar Jun 05 '13 01:06 dfischer

Seems to still happen every now and then and I'm forced to delete everything and start from scratch again.

dfischer avatar Jun 18 '13 22:06 dfischer