Sha256: 7da396c88c0af8ebf88bcb3eb41436c9f28eee3a8152480eec4c4438f54fb838
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' RSpec.describe Slack::Web::Api::Endpoints::Users do let(:client) { Slack::Web::Client.new } context 'users' do it 'list', vcr: { cassette_name: 'web/users_list' } do json = client.users_list(presence: true) expect(json['ok']).to be true expect(json['members'].size).to eq 9 expect(json['members'].first['presence']).to eq 'away' end it 'info', vcr: { cassette_name: 'web/users_info' } do json = client.users_info(user: '@aws') expect(json['user']['name']).to eq 'aws' end end end
Version data entries
3 entries across 3 versions & 2 rubygems