Sha256: 5972720d4fb447b060b53211485b8090e65982b386aec95f21fafb07461c0658

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 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::Mpim do
  let(:client) { Slack::Web::Client.new }
  context 'mpim_close' do
    it 'requires channel' do
      expect { client.mpim_close }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
  end
  context 'mpim_history' do
    it 'requires channel' do
      expect { client.mpim_history }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
  end
  context 'mpim_mark' do
    it 'requires channel' do
      expect { client.mpim_mark(ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires ts' do
      expect { client.mpim_mark(channel: 'G1234567890') }.to raise_error ArgumentError, /Required arguments :ts missing/
    end
  end
  context 'mpim_open' do
    it 'requires users' do
      expect { client.mpim_open }.to raise_error ArgumentError, /Required arguments :users missing/
    end
  end
  context 'mpim_replies' do
    it 'requires channel' do
      expect { client.mpim_replies(thread_ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires thread_ts' do
      expect { client.mpim_replies(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :thread_ts missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 spec/slack/web/api/endpoints/mpim_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/endpoints/mpim_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/endpoints/mpim_spec.rb
slack-ruby-client-0.14.5 spec/slack/web/api/endpoints/mpim_spec.rb