Skip to content

Commit a537484

Browse files
author
marcel corso
committed
fix again bad string. use heredoc
1 parent 01b8766 commit a537484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/call_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
expect(voice_client)
4040
.to receive(:request)
4141
.with(:post, 'calls', { source: source, destination: destination, callFlow: call_flow.to_json })
42-
.and_return("{'data':[{'id':'#{call_id}','status':'queued','source':'#{source}','destination':'#{destination}','createdAt':'2019-10-11T13:02:19Z','updatedAt':'2019-10-11T13:02:19Z','endedAt':null}],'_links':{'self':'/calls/#{call_id}'},'pagination':{'total_count':0,'pageCount':0,'currentPage':0,'perPage':0}}")
42+
.and_return(%Q({"data":[{"id":"#{call_id}","status":"queued","source":"#{source}","destination":"#{destination}","createdAt":"2019-10-11T13:02:19Z","updatedAt":"2019-10-11T13:02:19Z","endedAt":null}],"_links":{"self":"/calls/#{call_id}"},"pagination":{"total_count":0,"pageCount":0,"currentPage":0,"perPage":0}}))
4343
call = client.call_create(source, destination, call_flow)
4444
expect(call.id).to eq call_id
4545
end

0 commit comments

Comments
 (0)