Sha256: 051f06d86ab34189af9478382d0cb45a7a7ec09615ce620a73d195c52fc11b96

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 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: %q[http://example.com/my_cloud_service_file/abc123], title: %q[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: %q[123456], title: %q[Danger, High Voltage!]) }.to raise_error ArgumentError, /Required arguments :external_url missing/
    end
    it 'requires title' do
      expect { client.files_remote_add(external_id: %q[123456], external_url: %q[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

5 entries across 5 versions & 1 rubygems

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