Sha256: b54e844df73f2e6924849b09316fb369a5bb5b9ae371c7e48902961ee92bff2a

Contents?: true

Size: 667 Bytes

Versions: 5

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true

describe SlackRubyBot do
  def client
    SlackRubyBot::Client.new aliases: %w[:emoji: alias каспаров B0?.@(*^$]
  end
  it 'responds to emoji' do
    expect(message: ':emoji: hi').to respond_with_slack_message('Hi <@user>!')
  end
  it 'responds to an alias' do
    expect(message: 'alias hi').to respond_with_slack_message('Hi <@user>!')
  end
  it 'responds to a non-English alias' do
    expect(message: 'каспаров hi').to respond_with_slack_message('Hi <@user>!')
  end
  it 'responds to an alias with special characters' do
    expect(message: 'B0?.@(*^$ hi').to respond_with_slack_message('Hi <@user>!')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-bot-0.16.1 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.16.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.15.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.14.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.13.0 spec/slack-ruby-bot/commands/aliases_spec.rb