Sha256: c53a71bf7809fbf9a40fe0c64375ada86d6335478500291d6917a18ddb17a8b2

Contents?: true

Size: 636 Bytes

Versions: 5

Compression:

Stored size: 636 Bytes

Contents

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.12.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/aliases_spec.rb