test/razorpay/test_payment.rb in razorpay-1.2.0 vs test/razorpay/test_payment.rb in razorpay-1.2.1
- old
+ new
@@ -55,12 +55,9 @@
end
def test_payment_capture
stub_post(%r{payments/#{@payment_id}/capture$}, 'fake_captured_payment', 'amount=5100')
payment = Razorpay::Payment.fetch(@payment_id)
- assert_raises(ArgumentError, 'ArgumentError should be raised if amount is not provided') do
- payment.capture
- end
payment = payment.capture(amount: 5100)
assert_equal 'captured', payment.status
end
end
end