Sha256: ad1783827ee6bb711b2b049d1190e8fd2ae3b1875262f77c961149128fefcb43
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
require 'spec_helper' describe Zoomus::Actions::Recording do before :all do @zc = zoomus_client @args = {:host_id => "kEFomHcIRgqxZT8D086O6A"} end describe "#recording_list action" do before :each do stub_request( :post, zoomus_url("/recording/list") ).to_return(:body => json_response("recording_list")) end it "requires a 'host_id' argument" do expect{@zc.recording_list}.to raise_error(ArgumentError) end it "returns a hash" do expect(@zc.recording_list(@args)).to be_kind_of(Hash) end it "returns 'total_records'" do expect(@zc.recording_list(@args)["total_records"]).to eq(1) end it "returns 'meetings' Array" do expect(@zc.recording_list(@args)["meetings"]).to be_kind_of(Array) end end describe "#recording_list! action" do before :each do stub_request( :post, zoomus_url("/recording/list") ).to_return(:body => json_response("error")) end it "raises Zoomus::Error exception" do expect { @zc.recording_list!(@args) }.to raise_error(Zoomus::Error) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zoomus-0.7.0 | spec/lib/zoomus/actions/recording/list_spec.rb |
zoomus-0.6.0 | spec/lib/zoomus/actions/recording/list_spec.rb |
zoomus-0.5.0 | spec/lib/zoomus/actions/recording/list_spec.rb |