Sha256: 605d4db85c54953330b151e82ce49c26bf9f132e69ee283e1aa5f82f5a5442a2

Contents?: true

Size: 617 Bytes

Versions: 8

Compression:

Stored size: 617 Bytes

Contents

describe SlackRubyBot::Commands::Hi do
  def app
    SlackRubyBot::App.new
  end
  it 'says hi' do
    expect(message: "#{SlackRubyBot.config.user} hi").to respond_with_slack_message('Hi <@user>!')
  end
  it 'says hi to bot:' do
    expect(message: "#{SlackRubyBot.config.user}: hi").to respond_with_slack_message('Hi <@user>!')
  end
  it 'says hi to @bot' do
    expect(message: "<@#{SlackRubyBot.config.user_id}> hi").to respond_with_slack_message('Hi <@user>!')
  end
  it 'says hi to @bot: ' do
    expect(message: "<@#{SlackRubyBot.config.user_id}>: hi").to respond_with_slack_message('Hi <@user>!')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/commands/hi_spec.rb