Sha256: 9f691065587e2fa0779b6efb6c590ff3e9efbb64f8cc771abddfb6d05aa7a08d
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' describe Zoomus::Actions::Recording do before :all do @zc = zoomus_client @args = {:meeting_id => "ucc69C82Q5mTNyCRWE29Aw==" } end describe "#recording_delete action" do before :each do stub_request( :post, zoomus_url("/recording/delete") ).to_return(:body => json_response("recording_delete")) end it "requires a 'meeting_id' argument" do expect { @zc.recording_delete(filter_key(@args, :meeting_id)) }.to raise_error(ArgumentError) end it "returns a hash" do expect(@zc.recording_delete(@args)).to be_kind_of(Hash) end it "returns id and deleted at attributes" do res = @zc.recording_delete(@args) expect(res["id"]).to eq(@args[:meeting_id]) expect(res["deleted_at"]).to eq("2012-11-25T12:00:00Z") end end describe "#recording_delete! action" do before :each do stub_request( :post, zoomus_url("/recording/delete") ).to_return(:body => json_response("error")) end it "raises Zoomus::Error exception" do expect { @zc.recording_delete!(@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/delete_spec.rb |
zoomus-0.6.0 | spec/lib/zoomus/actions/recording/delete_spec.rb |
zoomus-0.5.0 | spec/lib/zoomus/actions/recording/delete_spec.rb |