Sha256: 60e77ff63ba334a39c862db7762f823403468f38dcb09b2d97c059de223a682c

Contents?: true

Size: 891 Bytes

Versions: 16

Compression:

Stored size: 891 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

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

  describe '#meeting_recordings_settings_update action' do
    context 'with 204 response' do
      before :each do
        stub_request(
          :patch,
          zoom_url("/meetings/#{args[:meeting_id]}/recordings/settings")
        ).to_return(
          status: 204,
          headers: { 'Content-Type' => 'application/json' }
        )
      end

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

      it 'returns a status code' do
        expect(zc.meeting_recording_settings_update(args)).to eq 204
      end
    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/update_spec.rb
zoom_rb-1.1.10 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.9 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.8 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.7 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.6 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.5 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.4 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.3 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.2 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.1 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.1.0 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.0.2 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.0.1 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-1.0.0 spec/lib/zoom/actions/recording/settings/update_spec.rb
zoom_rb-0.11.0 spec/lib/zoom/actions/recording/settings/update_spec.rb