Sha256: 3a506d09996d501796a2af5f56873b9d5d376e0e5d5e7ac7e58c25d7657e42cf
Contents?: true
Size: 1.03 KB
Versions: 8
Compression:
Stored size: 1.03 KB
Contents
require "opentok/opentok" require "opentok/sip" require "opentok/version" require "spec_helper" describe OpenTok::Sip do before(:each) do now = Time.parse("2017-04-18 20:17:40 +1000") allow(Time).to receive(:now) { now } end let(:api_key) { "123456" } let(:api_secret) { "1234567890abcdef1234567890abcdef1234567890" } let(:session_id) { "SESSIONID" } let(:expiring_token) { "TOKENID" } let(:sip_uri) { "sip:+15128675309@acme.pstn.example.com;transport=tls" } let(:sip_username) { "bob" } let(:sip_password) { "abc123" } let(:opentok) { OpenTok::OpenTok.new api_key, api_secret } let(:sip) { opentok.sip } subject { sip } it "receives a valid response", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do opts = { "auth" => { "username" => sip_username, "password" => sip_password }, "secure" => "true" } response = sip.dial(session_id, expiring_token, sip_uri, opts) expect(response).not_to be_nil end end
Version data entries
8 entries across 8 versions & 1 rubygems