Sha256: 8f519c4fe197b0ec145954c0ff1bcba99abbae4268d52d46090de9e8d6b885db

Contents?: true

Size: 997 Bytes

Versions: 4

Compression:

Stored size: 997 Bytes

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Reactions do
  let(:client) { Slack::Web::Client.new }
  context 'reactions_add' do
    it 'requires channel' do
      expect { client.reactions_add(name: 'thumbsup', timestamp: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires name' do
      expect { client.reactions_add(channel: 'C1234567890', timestamp: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :name missing/
    end
    it 'requires timestamp' do
      expect { client.reactions_add(channel: 'C1234567890', name: 'thumbsup') }.to raise_error ArgumentError, /Required arguments :timestamp missing/
    end
  end
  context 'reactions_remove' do
    it 'requires name' do
      expect { client.reactions_remove }.to raise_error ArgumentError, /Required arguments :name 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/reactions_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-0.14.5 spec/slack/web/api/endpoints/reactions_spec.rb