Sha256: 2b6366fea86b55d1245b996cf5f50e22fd4cc0f75f8fc1ad20760e0f5d500d0e

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 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::FilesRemote do
  let(:client) { Slack::Web::Client.new }
  context 'files.remote_add' do
    it 'requires external_id' do
      expect { client.files_remote_add(external_url: 'http://example.com/my_cloud_service_file/abc123', title: 'Danger, High Voltage!') }.to raise_error ArgumentError, /Required arguments :external_id missing/
    end
    it 'requires external_url' do
      expect { client.files_remote_add(external_id: '123456', title: 'Danger, High Voltage!') }.to raise_error ArgumentError, /Required arguments :external_url missing/
    end
    it 'requires title' do
      expect { client.files_remote_add(external_id: '123456', external_url: 'http://example.com/my_cloud_service_file/abc123') }.to raise_error ArgumentError, /Required arguments :title missing/
    end
  end
  context 'files.remote_share' do
    it 'requires channels' do
      expect { client.files_remote_share }.to raise_error ArgumentError, /Required arguments :channels missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-0.14.5 spec/slack/web/api/endpoints/files_remote_spec.rb