Sha256: 12ea89d6cca25ca5a5863a0aa3781cfa1d6642f0945ef0e3c1897200e787d94a

Contents?: true

Size: 1.15 KB

Versions: 16

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Zoom::Actions::Recording do
  let(:zc) { zoom_client }
  let(:args) { { meeting_id: 91538056781 } }

  describe '#meeting_recordings_settings_get action' do
    before :each do
      stub_request(
        :get,
        zoom_url("/meetings/#{args[:meeting_id]}/recordings/settings")
      ).to_return(
        status: 200,
        body: json_response('recording', 'settings', 'get'),
        headers: { 'Content-Type' => 'application/json' }
      )
    end

    it "requires a 'meeting_id' argument" do
      expect {
        zc.meeting_recording_settings_get(filter_key(args, :meeting_id))
      }.to raise_error(Zoom::ParameterMissing)
    end

    it 'returns a hash' do
      expect(zc.meeting_recording_settings_get(args)).to be_kind_of(Hash)
    end

    it 'returns id and attributes' do
      res = zc.meeting_recording_settings_get(args)

      expect(res['on_demand']).to eq(false)
      expect(res['password']).to eq('')
      expect(res['recording_authentication']).to eq(false)
      expect(res['share_recording']).to eq('publicly')
      expect(res['viewer_download']).to eq(false)
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
zoom_rb-1.1.11 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.10 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.9 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.8 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.7 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.6 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.5 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.4 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.3 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.2 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.1 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.1.0 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.0.2 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.0.1 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-1.0.0 spec/lib/zoom/actions/recording/settings/get_spec.rb
zoom_rb-0.11.0 spec/lib/zoom/actions/recording/settings/get_spec.rb