working on twilio integration

This commit is contained in:
Jared Cosulich 2017-03-10 14:50:17 -05:00
parent a1246c0ef1
commit f4a6d4ce22
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ RSpec.describe Attempt, type: :model do
it 'should contact the Twilio API' do
expect(FakeSMS.messages.length).to eq(1)
expect(FakeSMS.messages.first.body).to eq('Question 0:1%0a%0aOption 0:1 A: Reply 1%0aOption 0:1 B: Reply 2%0aOption 0:1 C: Reply 3%0aOption 0:1 D: Reply 4%0aOption 0:1 E: Reply 5')
# expect(FakeSMS.messages.first.body).to eq('Question 0:1%0a%0aOption 0:1 A: Reply 1\n\r%0a%OaOption 0:1 B: Reply 2%0aOption 0:1 C: Reply 3%0aOption 0:1 D: Reply 4%0aOption 0:1 E: Reply 5')
expect(FakeSMS.messages.first.to).to eq(recipient.phone)
end