Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Adapt FuelSurcharge::TNT to TNT's website changes #3

Merged
merged 5 commits into from
Nov 27, 2018

Conversation

czj
Copy link
Contributor

@czj czj commented Nov 27, 2018

Handles "décembre" as the month name via more reliable tests.

czj added 5 commits November 27, 2018 13:12
We can use TNT instead of Tnt or TnTTest
Handles the possibility of 2 instead of 3 months with percentages in the page.
Allows debugging response by having a separate method.
We use &. in many places in the class, why not using them everywhere ?
The build broke when we reached "décembre" with an accent, because Date.parse() cannot parse a string with an accent.

By asserting presence of french months' in text string, the tests are more reliable.

Also use the instance variable @tnt like in ever other method in the test class.
@czj czj merged commit 64f446a into master Nov 27, 2018
@czj czj deleted the handle_tnt_in_december branch November 27, 2018 13:11
@bobmaerten
Copy link
Collaborator

Ca manque de mise à jour du changelog... Notamment sur le changement de syntaxe de Tnt -> TNT ;)

@czj
Copy link
Contributor Author

czj commented Nov 27, 2018 via email

@bobmaerten
Copy link
Collaborator

see #6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants