Sha256: 1c0a63a2e502125e22748ba3c6087a1970bc5da01799e8584f4a5a3fdb7af43e

Contents?: true

Size: 1.35 KB

Versions: 17

Compression:

Stored size: 1.35 KB

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Im do
  let(:client) { Slack::Web::Client.new }
  context 'im_close' do
    it 'requires channel' do
      expect { client.im_close }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
  end
  context 'im_history' do
    it 'requires channel' do
      expect { client.im_history }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
  end
  context 'im_mark' do
    it 'requires channel' do
      expect { client.im_mark(ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires ts' do
      expect { client.im_mark(channel: 'D1234567890') }.to raise_error ArgumentError, /Required arguments :ts missing/
    end
  end
  context 'im_open' do
    it 'requires user' do
      expect { client.im_open }.to raise_error ArgumentError, /Required arguments :user missing/
    end
  end
  context 'im_replies' do
    it 'requires channel' do
      expect { client.im_replies(thread_ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires thread_ts' do
      expect { client.im_replies(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :thread_ts missing/
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.14.3 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.14.2 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.14.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.14.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.13.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.13.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.12.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.11.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.11.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.10.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.9.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.9.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.8.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.8.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.9 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.8 spec/slack/web/api/endpoints/im_spec.rb