Sha256: e264917a7c68a8250cf6febdeb6446c3e1b733a11fe74e4805f893cc420d6fc7

Contents?: true

Size: 602 Bytes

Versions: 8

Compression:

Stored size: 602 Bytes

Contents

require 'spec_helper'

describe SlackRubyBot do
  def app
    SlackRubyBot::App.new
  end
  before do
    ENV['SLACK_RUBY_BOT_ALIASES'] = ':emoji: alias каспаров'
  end
  after do
    ENV.delete('SLACK_RUBY_BOT_ALIASES')
  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
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.7.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.6.2 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.6.1 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.6.0 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.5.5 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.5.4 spec/slack-ruby-bot/commands/aliases_spec.rb
slack-ruby-bot-0.5.3 spec/slack-ruby-bot/commands/aliases_spec.rb