Skip to content

Instantly share code, notes, and snippets.

@jasonwebster
Created March 21, 2017 14:15
Show Gist options
  • Save jasonwebster/717a03128b953226689ae6eda3cab381 to your computer and use it in GitHub Desktop.
Save jasonwebster/717a03128b953226689ae6eda3cab381 to your computer and use it in GitHub Desktop.
jason@shopify-mbp:active_merchant (curiousepic-2484) $ rake test TEST=test/remote/gateways/remote_orbital_test.rb
/usr/local/lib/ruby/gems/2.4.0/gems/concurrent-ruby-1.0.2/lib/concurrent/map.rb:206: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/builder-3.2.2/lib/builder/xchar.rb:111: warning: constant ::Fixnum is deprecated
/usr/local/Cellar/ruby/2.4.0/bin/ruby -w -I"lib:test" -rubygems -w -I"/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib" "/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/remote/gateways/remote_orbital_test.rb"
/usr/local/lib/ruby/gems/2.4.0/gems/concurrent-ruby-1.0.2/lib/concurrent/map.rb:206: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:243: warning: method redefined; discarding old +
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:253: warning: method redefined; discarding old -
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:263: warning: method redefined; discarding old -
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/enumerable.rb:20: warning: method redefined; discarding old sum
/usr/local/lib/ruby/gems/2.4.0/gems/builder-3.2.2/lib/builder/xchar.rb:111: warning: constant ::Fixnum is deprecated
Loaded suite /usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader
Started
.....F
================================================================================================================
Failure:
Response expected to fail: <#<ActiveMerchant::Billing::MultiResponse:0x007fb75b252eb0
@primary_response=
#<ActiveMerchant::Billing::Response:0x007fb759202458
@authorization=
"58D13538FDC3F294218CB4B02AF48CA5D57A53DE;5f1bdd0956c20bd1cf7940",
@avs_result=
{"code"=>"F",
"message"=>"Zip No Match/Zip 4 No Match/Locale match",
"street_match"=>"Y",
"postal_match"=>"N"},
@cvv_result={"code"=>"N", "message"=>"No match"},
@emv_authorization=nil,
@error_code=nil,
@fraud_review=nil,
@message="Approved",
@params=
{"industry_type"=>nil,
"message_type"=>"A",
"merchant_id"=>"700000011704",
"terminal_id"=>"001",
"card_brand"=>"VI",
"order_id"=>"5f1bdd0956c20bd1cf7940",
"tx_ref_num"=>"58D13538FDC3F294218CB4B02AF48CA5D57A53DE",
"tx_ref_idx"=>"0",
"proc_status"=>"0",
"approval_status"=>"1",
"resp_code"=>"00",
"avs_resp_code"=>"F ",
"cvv2_resp_code"=>"N",
"auth_code"=>"091880",
"recurring_advice_cd"=>nil,
"cavv_resp_code"=>nil,
"status_msg"=>"Approved",
"resp_msg"=>nil,
"host_resp_code"=>"00",
"host_avs_resp_code"=>"A",
"host_cvv2_resp_code"=>"N",
"customer_ref_num"=>nil,
"customer_name"=>nil,
"profile_proc_status"=>nil,
"customer_profile_message"=>nil,
"resp_time"=>"101416",
"partial_auth_occurred"=>nil,
"requested_amount"=>nil,
"redeemed_amount"=>nil,
"remaining_balance"=>nil,
"country_fraud_filter_status"=>nil,
"iso_country_code"=>nil},
@success=true,
@test=true>,
@responses=
[#<ActiveMerchant::Billing::Response:0x007fb759202458
@authorization=
"58D13538FDC3F294218CB4B02AF48CA5D57A53DE;5f1bdd0956c20bd1cf7940",
@avs_result=
{"code"=>"F",
"message"=>"Zip No Match/Zip 4 No Match/Locale match",
"street_match"=>"Y",
"postal_match"=>"N"},
@cvv_result={"code"=>"N", "message"=>"No match"},
@emv_authorization=nil,
@error_code=nil,
@fraud_review=nil,
@message="Approved",
@params=
{"industry_type"=>nil,
"message_type"=>"A",
"merchant_id"=>"700000011704",
"terminal_id"=>"001",
"card_brand"=>"VI",
"order_id"=>"5f1bdd0956c20bd1cf7940",
"tx_ref_num"=>"58D13538FDC3F294218CB4B02AF48CA5D57A53DE",
"tx_ref_idx"=>"0",
"proc_status"=>"0",
"approval_status"=>"1",
"resp_code"=>"00",
"avs_resp_code"=>"F ",
"cvv2_resp_code"=>"N",
"auth_code"=>"091880",
"recurring_advice_cd"=>nil,
"cavv_resp_code"=>nil,
"status_msg"=>"Approved",
"resp_msg"=>nil,
"host_resp_code"=>"00",
"host_avs_resp_code"=>"A",
"host_cvv2_resp_code"=>"N",
"customer_ref_num"=>nil,
"customer_name"=>nil,
"profile_proc_status"=>nil,
"customer_profile_message"=>nil,
"resp_time"=>"101416",
"partial_auth_occurred"=>nil,
"requested_amount"=>nil,
"redeemed_amount"=>nil,
"remaining_balance"=>nil,
"country_fraud_filter_status"=>nil,
"iso_country_code"=>nil},
@success=true,
@test=true>,
#<ActiveMerchant::Billing::Response:0x007fb75891a728
@authorization=
"58D13538FDC3F294218CB4B02AF48CA5D57A53DE;5f1bdd0956c20bd1cf7940",
@avs_result=
{"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil},
@cvv_result={"code"=>"", "message"=>"Not applicable"},
@emv_authorization=nil,
@error_code=nil,
@fraud_review=nil,
@message=nil,
@params=
{"merchant_id"=>"700000011704",
"terminal_id"=>"001",
"order_id"=>"5f1bdd0956c20bd1cf7940",
"tx_ref_num"=>"58D13538FDC3F294218CB4B02AF48CA5D57A53DE",
"tx_ref_idx"=>"1",
"outstanding_amt"=>"0",
"proc_status"=>"0",
"status_msg"=>nil,
"resp_time"=>"03212017101416"},
@success=true,
@test=true>],
@use_first_response=:use_first_response>>
test_failed_verify(RemoteOrbitalGatewayTest)
/Users/jason/Projects/active_merchant/test/remote/gateways/remote_orbital_test.rb:175:in `test_failed_verify'
172:
173: def test_failed_verify
174: response = @gateway.verify(@declined_card, @options)
=> 175: assert_failure response
176: assert_equal 'AUTH DECLINED 12001', response.message
177: end
178:
================================================================================================================
........
Finished in 13.670779 seconds.
----------------------------------------------------------------------------------------------------------------
14 tests, 107 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
92.8571% passed
----------------------------------------------------------------------------------------------------------------
1.02 tests/s, 7.83 assertions/s
rake aborted!
Command failed with status (1): [ruby -w -I"lib:test" -rubygems -w -I"/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib" "/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/remote/gateways/remote_orbital_test.rb" ]
/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:27:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:335:in `exec'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:20:in `dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:11:in `start'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/exe/bundle:32:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/exe/bundle:24:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
Tasks: TOP => test => test:units
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment