Skip to content

Commit

Permalink
Add a second of waiting to Texas button sequence to avoid call ending…
Browse files Browse the repository at this point in the history
… due to silence (codeforamerica#303)
  • Loading branch information
daguar authored and yamilethmedina committed Jun 7, 2016
1 parent 3783d12 commit 90952fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/state_handler/tx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/state_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90952fd

Please sign in to comment.