Ideally, we'd like a single test that gets run against each state's handler to verify that it has:
A PHONE_NUMBER constant, properly formatted
ALLOWED_NUMBER_OF_EBT_CARD_DIGITS, formatted as an array
A button_sequence method that takes an EBT card # and returns a string including that EBT card #
A transcribe_balance_response method that returns the having_trouble_try_again message when transcription_text is nil
This won't obviate the need for further testing on new state handlers, but it gives a gut-check for implementers, since they can get automated feedback on whether they implemented the stuff that can be verified programmatically with a test.
Ideally, we'd like a single test that gets run against each state's handler to verify that it has:
button_sequence
method that takes an EBT card # and returns a string including that EBT card #transcribe_balance_response
method that returns thehaving_trouble_try_again
message when transcription_text is nilThis won't obviate the need for further testing on new state handlers, but it gives a gut-check for implementers, since they can get automated feedback on whether they implemented the stuff that can be verified programmatically with a test.
cc @pui