spec/opentok/opentok_spec.rb in opentok-4.1.0 vs spec/opentok/opentok_spec.rb in opentok-4.1.1
- old
+ new
@@ -150,9 +150,15 @@
it { should be_an_instance_of(OpenTok::OpenTok) }
it "should have an timeout_length property" do
expect(opentok.timeout_length).to eq timeout_length
end
+
+ it "should send the custom timeout_length to new instances of OpenTok::Client" do
+ streams = opentok.streams
+
+ expect(streams.instance_variable_get(:@client).timeout_length).to eq timeout_length
+ end
end
context "with an addendum to the user agent string" do
let(:opentok) { OpenTok::OpenTok.new api_key, api_secret, :ua_addendum => ua_addendum }
let(:ua_addendum) { "BOOYAH"}