We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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') }
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 .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 .
The text was updated successfully, but these errors were encountered: