test/razorpay/test_errors.rb in razorpay-1.0.3 vs test/razorpay/test_errors.rb in razorpay-1.1.0

- old
+ new

@@ -5,10 +5,10 @@ module Razorpay # Tests for Razorpay::Entity class ErrorTest < Minitest::Test def setup @payment_id = 'fake_payment_id' - stub_get(/payments\/#{Regexp.quote(@payment_id)}$/, 'fake_payment') + stub_get(%r{payments\/#{Regexp.quote(@payment_id)}$}, 'fake_payment') end def test_bad_request_error stub_post(%r{payments/#{@payment_id}/capture$}, 'bad_request_error', 'amount=5') assert_raises Razorpay::BadRequestError, 'It must raise BadRequestError' do