Sha256: e5c506bd944d0e161a396539f8f65e41b40243c36848d4435cf6b39ae40df4a1

Contents?: true

Size: 640 Bytes

Versions: 19

Compression:

Stored size: 640 Bytes

Contents

require 'spec_helper'

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

19 entries across 19 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.1 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.10.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.9.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.8.2 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.8.1 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.8.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.7.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.6.2 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.6.1 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.6.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.5 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.4 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.3 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.2 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.1 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.5.0 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.4.5 spec/slack-ruby-bot/commands/hi_spec.rb
slack-ruby-bot-0.4.4 spec/slack-ruby-bot/commands/hi_spec.rb