Sha256: 7479f329b82fb8fc65c66e13903a19e66bb60430a8b8fa1fbb2318b7d0d974ae

Contents?: true

Size: 640 Bytes

Versions: 16

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Zoom::Actions::Roles do
  let(:zc) { zoom_client }

  describe '#roles_list action' do
    before :each do
      stub_request(
        :get,
        zoom_url('/roles')
      ).to_return(body: json_response('roles', 'list'), headers: { 'Content-Type' => 'application/json' })
    end

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

    it "returns 'total_records'" do
      expect(zc.roles_list['total_records']).to eq(4)
    end

    it "returns 'roles' Array" do
      expect(zc.roles_list['roles']).to be_kind_of(Array)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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