Sha256: 7e4f3ddc7fc73d594bfb224b85c7193ca00ba098fb4d277640964f1f90b046e8

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Calls do
  let(:client) { Slack::Web::Client.new }
  context 'calls_add' do
    it 'requires external_unique_id' do
      expect { client.calls_add(join_url: %q[https://example.com/calls/1234567890]) }.to raise_error ArgumentError, /Required arguments :external_unique_id missing/
    end
    it 'requires join_url' do
      expect { client.calls_add(external_unique_id: %q[025169F6-E37A-4E62-BB54-7F93A0FC4C1F]) }.to raise_error ArgumentError, /Required arguments :join_url missing/
    end
  end
  context 'calls_end' do
    it 'requires id' do
      expect { client.calls_end }.to raise_error ArgumentError, /Required arguments :id missing/
    end
  end
  context 'calls_info' do
    it 'requires id' do
      expect { client.calls_info }.to raise_error ArgumentError, /Required arguments :id missing/
    end
  end
  context 'calls_update' do
    it 'requires id' do
      expect { client.calls_update }.to raise_error ArgumentError, /Required arguments :id missing/
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/calls_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/calls_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/calls_spec.rb
slack-ruby-client-0.17.0 spec/slack/web/api/endpoints/calls_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/calls_spec.rb