./test/exhaustive/pre_auth_test.rb in exact4r-0.9.3 vs ./test/exhaustive/pre_auth_test.rb in exact4r-1.0

- old
+ new

@@ -1,22 +1,22 @@ require File.dirname(__FILE__) + "/../test_helper" class PreAuthTest < Test::Unit::TestCase def setup - @transporter = EWS::Transporter.new(LOCATION) + @transporter = EWS::Transporter.new(@@credentials.config['location']) end def test_mandatory request = EWS::Transaction::Request.new(:transaction_type => :pre_auth) assert !request.valid? assert_equal "gateway_id must be supplied", request.errors[:gateway_id] - request.gateway_id = EMERGIS_BASIC_AUTH[:gateway_id] + request.gateway_id = @@credentials.current_gateway[:gateway_id] assert !request.valid? assert_equal "password must be supplied", request.errors[:password] - request.password = EMERGIS_BASIC_AUTH[:password] + request.password = @@credentials.current_gateway[:password] assert !request.valid? assert_equal "One of the following must be supplied: cc_number, track1, track2 or transaction_tag.", request.errors[:base] request.cc_number = "4111111111111111" assert !request.valid?