Sha256: 6c8242686b2e8dfb4710cb615c628e2f465e13fc94ed9b2a340bbea35ccde134
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require 'spec_helper' describe Zoomus::Actions::Meeting do before :all do @zc = zoomus_client @host_id = "ufR93M2pRyy8ePFN92dttq" end describe "#meeting_list action" do before :each do stub_request(:post, zoomus_url("/meeting/list")).to_return(:body => json_response("meeting_list")) end it "requires a 'host_id' argument" do expect{@zc.meeting_list()}.to raise_error(ArgumentError) end it "returns a hash" do expect(@zc.meeting_list(:host_id => @host_id)).to be_kind_of(Hash) end it "returns 'total_records'" do expect(@zc.meeting_list(:host_id => @host_id)["total_records"]).to eq(1) end it "returns 'meetings' Array" do expect(@zc.meeting_list(:host_id => @host_id)["meetings"]).to be_kind_of(Array) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zoomus-0.1.0 | spec/lib/zoomus/actions/meeting/list_spec.rb |
zoomus-0.0.7 | spec/lib/zoomus/actions/meeting/list_spec.rb |
zoomus-0.0.6 | spec/lib/zoomus/actions/meeting/list_spec.rb |