Sha256: f0c6057490f346570f7697fca30c731627a5a4992f7bcade533d52402430a613

Contents?: true

Size: 995 Bytes

Versions: 4

Compression:

Stored size: 995 Bytes

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[], title: %q[]) }.to raise_error ArgumentError, /Required arguments :external_id missing/
    end
    it 'requires external_url' do
      expect { client.files_remote_add(external_id: %q[], title: %q[]) }.to raise_error ArgumentError, /Required arguments :external_url missing/
    end
    it 'requires title' do
      expect { client.files_remote_add(external_id: %q[], external_url: %q[]) }.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-2.1.0 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/files_remote_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/files_remote_spec.rb