Sha256: 773466eb17373ac32ae8f10fc6c0337256d167e1161042124332af50ea7fee35

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-0.7.7 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.6 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.5 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.4 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.3 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.2 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.1 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.7.0 spec/slack/web/api/endpoints/im_spec.rb
slack-ruby-client-0.6.0 spec/slack/web/api/endpoints/im_spec.rb