Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Aug 14, 2023
1 parent 8ef1e5f commit 503872b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/app/spec/models/dial_string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
it "build a client gateway dial string" do
fake_services_client = instance_double(
Services::Client,
build_client_gateway_dial_string: "0716100987@45.118.77.153:1619;fs_path=sip:10.10.0.20:6060"
build_client_gateway_dial_string: "02092960310@45.118.77.153:1619;fs_path=sip:10.10.0.20:6060"
)

result = DialString.new(
build_routing_parameters(
destination: "855716100987",
destination: "8562092960310",
username: "user1",
plus_prefix: false,
dial_string_prefix: "1",
Expand All @@ -90,9 +90,9 @@
expect(
fake_services_client
).to have_received(
:build_client_gateway_dial_string).with(username: "user1", destination: "0716100987"
:build_client_gateway_dial_string).with(username: "user1", destination: "02092960310"
)
expect(result).to eq("sofia/external/10716100987@45.118.77.153:1619;fs_path=sip:10.10.0.20:6060")
expect(result).to eq("sofia/external/102092960310@45.118.77.153:1619;fs_path=sip:10.10.0.20:6060")
end
end

Expand Down

0 comments on commit 503872b

Please sign in to comment.