Sha256: 9b6e235af65f423cde756a8763c698cc0e0164c2ad9980c1dc0ad0aac674263d

Contents?: true

Size: 1.62 KB

Versions: 9

Compression:

Stored size: 1.62 KB

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::FilesComments do
  let(:client) { Slack::Web::Client.new }
  context 'files.comments_add' do
    it 'requires comment' do
      expect { client.files_comments_add(file: 'F1234467890') }.to raise_error ArgumentError, /Required arguments :comment missing/
    end
    it 'requires file' do
      expect { client.files_comments_add(comment: 'Everyone should take a moment to read this file.') }.to raise_error ArgumentError, /Required arguments :file missing/
    end
  end
  context 'files.comments_delete' do
    it 'requires file' do
      expect { client.files_comments_delete(id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :file missing/
    end
    it 'requires id' do
      expect { client.files_comments_delete(file: 'F1234567890') }.to raise_error ArgumentError, /Required arguments :id missing/
    end
  end
  context 'files.comments_edit' do
    it 'requires comment' do
      expect { client.files_comments_edit(file: 'F1234567890', id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :comment missing/
    end
    it 'requires file' do
      expect { client.files_comments_edit(comment: 'Everyone should take a moment to read this file, seriously.', id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :file missing/
    end
    it 'requires id' do
      expect { client.files_comments_edit(comment: 'Everyone should take a moment to read this file, seriously.', file: 'F1234567890') }.to raise_error ArgumentError, /Required arguments :id missing/
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.1 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.14.0 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.13.1 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.13.0 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.12.0 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.11.1 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.11.0 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.10.0 spec/slack/web/api/endpoints/files_comments_spec.rb
slack-ruby-client-0.9.1 spec/slack/web/api/endpoints/files_comments_spec.rb