trying to get twilio working

pull/1/head
Jared Cosulich 9 years ago
parent c8946a02f4
commit a1246c0ef1

@ -19,8 +19,10 @@ class Attempt < ApplicationRecord
puts message.inspect
puts message.try(:path)
puts message.try(:sid)
# message.path.split('/').last
update_attributes(sent_at: Time.new, twilio_sid: message.path.split('/').last)
update_attributes(sent_at: Time.new, twilio_sid: message.sid)
end
end

@ -119,7 +119,7 @@ class FakeSMS
def create(from:, to:, body:)
self.class.messages << Message.new(from, to, body)
return Struct.new(:path).new('/path')
return Struct.new(:sid).new('sid')
end
end

Loading…
Cancel
Save