Sha256: 70411787e9fdeabd4e1b7f5ea274ee968f385cd8c81f2cbc1f7249b72f8e9876

Contents?: true

Size: 971 Bytes

Versions: 16

Compression:

Stored size: 971 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Zoom::Actions::Recording do
  let(:zc) { zoom_client }
  let(:args) { { recording_id: 'kEFomHcIRgqxZT8D086O6A', meeting_id: 933560800 } }

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

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

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