Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error On Stripe::CardError #849

Open
OscarDV opened this issue Nov 17, 2022 · 0 comments
Open

Error On Stripe::CardError #849

OscarDV opened this issue Nov 17, 2022 · 0 comments

Comments

@OscarDV
Copy link

OscarDV commented Nov 17, 2022

I receive an error when running a test.

Error is: expected #<ArgumentError: wrong number of arguments (given 3, expected 2)> to be a kind of Stripe::CardError

Code: expect { Stripe::Charge.create(amount: 1, currency: 'usd') }.to raise_error {|e| expect(e).to be_a Stripe::CardError expect(e.http_status).to eq(402) expect(e.code).to eq('invalid_expiry_month') }

I'm running Ruby 3.0.3 with rails 6.1.5 .

It does work with Ruby 2.7.5 with rails 6.1.5 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant