-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Priority: fix for bin lookup #5366
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add some tests to cover this new case e.g.
test/remote/gateways/remote_priority_test.rb:327
def test_failed_verify
response = @gateway.verify(@invalid_credit_card)
assert_failure response
assert_match 'No bank information found for bin number', response.message
end
Maybe an adaptation to the previous example for unit tests
Description ------------------------- Send 8 digits for bin lookups instead of 7. Unit tests ------------------------- 6159 tests, 80990 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote tests ------------------------- 31 tests, 84 assertions, 5 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 83.871% passed Failures not related to changes Rubocop ------------------------- 808 files inspected, no offenses detected
08d91dd
to
4b0e082
Compare
@sinourain Hey I added some unit tests. It was a bit trickier than expected, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Send 8 digits for bin lookups instead of 7.
Unit tests
6157 tests, 80984 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
Remote tests
31 tests, 84 assertions, 5 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 83.871% passed
Failures not related to changes
Rubocop
808 files inspected, no offenses detected