Skip to content
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

Braintree: Remove decimal for non-fractional currencies #2806

Merged
merged 1 commit into from Apr 17, 2018
Merged

Conversation

nfarve
Copy link

@nfarve nfarve commented Apr 11, 2018

Adds list of non-fractional currencies and ulitizes them when adding the
amount field to transactions.

Loaded suite test/remote/gateways/remote_braintree_blue_test


60 tests, 349 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Loaded suite test/unit/gateways/braintree_blue_test

48 tests, 121 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Loaded suite test/unit/gateways/braintree_orange_test

17 tests, 65 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Loaded suite test/remote/gateways/remote_braintree_orange_test

20 tests, 88 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

@nfarve
Copy link
Author

nfarve commented Apr 11, 2018

Note: It wasn't possible to add a test since the gateway returns all amounts as a BigDecimal

@curiousepic
Copy link
Contributor

curiousepic commented Apr 11, 2018

@nfarve Even so, a stub_commed unit test that .check_requests the outgoing amount would be good.

@nfarve nfarve force-pushed the enrg_7417_jpy branch 3 times, most recently from 457560b to 640d326 Compare April 16, 2018 12:58
@nfarve
Copy link
Author

nfarve commented Apr 16, 2018

@curiousepic officially given up trying to write the test for BraintreeBlue since its a Gem, but did add it for BraintreeOrange

Copy link
Contributor

@curiousepic curiousepic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nfarve That's fair, it closely follows the pattern for other gateways that are tested. 👍

Adds list of non-fractional currencies and ulitizes them when adding the
amount field to transactions.

Loaded suite test/remote/gateways/remote_braintree_blue_test

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 tests, 349 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Loaded suite test/unit/gateways/braintree_blue_test

48 tests, 121 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Loaded suite test/unit/gateways/braintree_orange_test

17 tests, 65 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Loaded suite test/remote/gateways/remote_braintree_orange_test

20 tests, 88 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@nfarve nfarve merged commit d14d31b into master Apr 17, 2018
@nfarve nfarve deleted the enrg_7417_jpy branch April 17, 2018 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants