Sha256: b005c22892fa1ac4cc697d55556797a26baa7d2bf537025dbf02562e96476932

Contents?: true

Size: 1009 Bytes

Versions: 5

Compression:

Stored size: 1009 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: %q[thumbsup], timestamp: %q[1234567890.123456]) }.to raise_error ArgumentError, /Required arguments :channel missing/
    end
    it 'requires name' do
      expect { client.reactions_add(channel: %q[C1234567890], timestamp: %q[1234567890.123456]) }.to raise_error ArgumentError, /Required arguments :name missing/
    end
    it 'requires timestamp' do
      expect { client.reactions_add(channel: %q[C1234567890], name: %q[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

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-0.17.0 spec/slack/web/api/endpoints/reactions_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/reactions_spec.rb