From 90952fd6875a572576db78aeec54a716b736c6d3 Mon Sep 17 00:00:00 2001 From: Dave Guarino Date: Mon, 25 May 2015 17:37:58 -0700 Subject: [PATCH] Add a second of waiting to Texas button sequence to avoid call ending due to silence (#303) --- lib/state_handler/tx.rb | 2 +- spec/lib/state_handler_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/state_handler/tx.rb b/lib/state_handler/tx.rb index 645056a..f546f48 100644 --- a/lib/state_handler/tx.rb +++ b/lib/state_handler/tx.rb @@ -3,7 +3,7 @@ class StateHandler::TX < StateHandler::Base ALLOWED_NUMBER_OF_EBT_CARD_DIGITS = [19] def button_sequence(ebt_number) - "wwww1wwwwww#{ebt_number}ww" + "wwww1wwwwww#{ebt_number}wwww" end def transcribe_balance_response(transcription_text, language = :english) diff --git a/spec/lib/state_handler_spec.rb b/spec/lib/state_handler_spec.rb index 0a7b0a8..c1ed844 100644 --- a/spec/lib/state_handler_spec.rb +++ b/spec/lib/state_handler_spec.rb @@ -519,7 +519,7 @@ it 'gives correct button sequence' do fake_ebt_number = '11112222' desired_sequence = subject.button_sequence(fake_ebt_number) - expect(desired_sequence).to eq("wwww1wwwwww#{fake_ebt_number}ww") + expect(desired_sequence).to eq("wwww1wwwwww#{fake_ebt_number}wwww") end it 'tells the number of digits a CA EBT card has' do