~singpolyma/sgx-jmp

2356e70b4a804057ab8f313cf8315203d0e65aec — Stephen Paul Weber 11 months ago 63805c4
Use Transfer because Forward doesn't work once answered
2 files changed, 8 insertions(+), 7 deletions(-)

M test/test_web.rb
M views/outbound/connect.slim
M test/test_web.rb => test/test_web.rb +6 -6
@@ 106,8 106,8 @@ class WebTest < Minitest::Test
		assert last_response.ok?
		assert_equal(
			"<?xml version=\"1.0\" encoding=\"utf-8\" ?><Response>" \
			"<Forward from=\"+15551234567\" to=\"+15557654321\" />" \
			"</Response>",
			"<Transfer transferCallerId=\"+15551234567\">" \
			"<PhoneNumber>+15557654321</PhoneNumber></Transfer></Response>",
			last_response.body
		)
	end


@@ 181,8 181,8 @@ class WebTest < Minitest::Test
		assert last_response.ok?
		assert_equal(
			"<?xml version=\"1.0\" encoding=\"utf-8\" ?><Response>" \
			"<Forward from=\"+15551234567\" to=\"+15557654321\" />" \
			"</Response>",
			"<Transfer transferCallerId=\"+15551234567\">" \
			"<PhoneNumber>+15557654321</PhoneNumber></Transfer></Response>",
			last_response.body
		)
		assert_mock ExpiringLock::REDIS


@@ 251,8 251,8 @@ class WebTest < Minitest::Test
		assert last_response.ok?
		assert_equal(
			"<?xml version=\"1.0\" encoding=\"utf-8\" ?><Response>" \
			"<Forward from=\"+15551234567\" to=\"+15557654321\" />" \
			"</Response>",
			"<Transfer transferCallerId=\"+15551234567\">" \
			"<PhoneNumber>+15557654321</PhoneNumber></Transfer></Response>",
			last_response.body
		)
	end

M views/outbound/connect.slim => views/outbound/connect.slim +2 -1
@@ 1,3 1,4 @@
doctype xml
Response
	Forward from=from to=to /
	Transfer transferCallerId=from
		PhoneNumber= to