./test/exhaustive/referenced_void_test.rb in exact4r-1.4 vs ./test/exhaustive/referenced_void_test.rb in exact4r-1.5
- old
+ new
@@ -12,11 +12,11 @@
# do initial purchase
request = EWS::Transaction::Request.new(cc_number_params.merge({
:transaction_type => :purchase,
:amount => 11.25,
- :reference_no => "reference_no_#{rand(10)}",
- :customer_ref => "customer_ref_#{rand(10)}"
+ :reference_no => "reference_no_#{rand(1000)}",
+ :customer_ref => "customer_ref_#{rand(1000)}"
}))
assert request.valid?, request.errors.inspect
@purchase = @transporter.submit(request, :json)
assert @purchase.approved?