Commit c826f4de authored by AlexMamonchik's avatar AlexMamonchik
Browse files

fix for #319

parent e0326a7a
......@@ -199,7 +199,12 @@ shared_examples 'Charge API' do
charge.amount = 777
charge.source = {any: "source"}
expect { }.to raise_error(Stripe::InvalidRequestError, /Received unknown parameters: currency, amount, source/i)
expect { }.to raise_error(Stripe::InvalidRequestError) do |error|
expect(error.message).to match(/Received unknown parameters/)
expect(error.message).to match(/currency/)
expect(error.message).to match(/amount/)
expect(error.message).to match(/source/)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment