test/razorpay/test_payment.rb in razorpay-1.1.0 vs test/razorpay/test_payment.rb in razorpay-1.2.0
- old
+ new
@@ -19,9 +19,11 @@
def test_payments_should_be_available
payment = Razorpay::Payment.fetch(@payment_id)
assert_instance_of Razorpay::Payment, payment, 'Payment not an instance of Payment class'
assert_equal @payment_id, payment.id, 'Payment IDs do not match'
+ assert_equal 500, payment.amount, 'Payment amount is accessible'
+ assert_equal 'card', payment.method, 'Payment method is accessible'
end
def test_all_payments
payments = Razorpay::Payment.all
assert_instance_of Razorpay::Collection, payments, 'Payments should be an array'