psych
psych copied to clipboard
Psych::BadAlias Unknown alias
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]
Deleting all my VCR data and then doing my suite with the new ruby version (installed today) fixed it.
Seems to still happen every now and then and I'm forced to delete everything and start from scratch again.