Sha256: 24821bee0d1d4e78d0fadc2420ad7b1d8e6b08ae69bf54780e5a5ccd6e5dd829

Contents?: true

Size: 1.55 KB

Versions: 10

Compression:

Stored size: 1.55 KB

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Files do
  let(:client) { Slack::Web::Client.new }
  context 'files_delete' do
    it 'requires file' do
      expect { client.files_delete }.to raise_error ArgumentError, /Required arguments :file missing/
    end
  end
  context 'files_edit' do
    it 'requires file' do
      expect { client.files_edit(title: 'Brand new title') }.to raise_error ArgumentError, /Required arguments :file missing/
    end
    it 'requires title' do
      expect { client.files_edit(file: 'F2147483862') }.to raise_error ArgumentError, /Required arguments :title missing/
    end
  end
  context 'files_info' do
    it 'requires file' do
      expect { client.files_info }.to raise_error ArgumentError, /Required arguments :file missing/
    end
  end
  context 'files_revokePublicURL' do
    it 'requires file' do
      expect { client.files_revokePublicURL }.to raise_error ArgumentError, /Required arguments :file missing/
    end
  end
  context 'files_share' do
    it 'requires file' do
      expect { client.files_share(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :file missing/
    end
    it 'requires channel' do
      expect { client.files_share(file: 'F2147483862') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
  end
  context 'files_sharedPublicURL' do
    it 'requires file' do
      expect { client.files_sharedPublicURL }.to raise_error ArgumentError, /Required arguments :file missing/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.14.3 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.14.2 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.14.1 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.14.0 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.13.1 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.13.0 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.12.0 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.11.1 spec/slack/web/api/endpoints/files_spec.rb
slack-ruby-client-0.11.0 spec/slack/web/api/endpoints/files_spec.rb