Sha256: ac623e73aadbc1536f3249fd74f8296d7f766abd379bded83f9fef9dceac7fb1

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 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::AdminEmoji do
  let(:client) { Slack::Web::Client.new }
  context 'admin.emoji_add' do
    it 'requires name' do
      expect { client.admin_emoji_add(url: %q[]) }.to raise_error ArgumentError, /Required arguments :name missing/
    end
    it 'requires url' do
      expect { client.admin_emoji_add(name: %q[]) }.to raise_error ArgumentError, /Required arguments :url missing/
    end
  end
  context 'admin.emoji_addAlias' do
    it 'requires alias_for' do
      expect { client.admin_emoji_addAlias(name: %q[]) }.to raise_error ArgumentError, /Required arguments :alias_for missing/
    end
    it 'requires name' do
      expect { client.admin_emoji_addAlias(alias_for: %q[]) }.to raise_error ArgumentError, /Required arguments :name missing/
    end
  end
  context 'admin.emoji_remove' do
    it 'requires name' do
      expect { client.admin_emoji_remove }.to raise_error ArgumentError, /Required arguments :name missing/
    end
  end
  context 'admin.emoji_rename' do
    it 'requires name' do
      expect { client.admin_emoji_rename(new_name: %q[]) }.to raise_error ArgumentError, /Required arguments :name missing/
    end
    it 'requires new_name' do
      expect { client.admin_emoji_rename(name: %q[]) }.to raise_error ArgumentError, /Required arguments :new_name missing/
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-2.1.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-0.17.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/admin_emoji_spec.rb