Sha256: 44ed7ef94e7b14066b0c58bd5b3b756034274392f67b96cf58a596a527df82e6

Contents?: true

Size: 680 Bytes

Versions: 8

Compression:

Stored size: 680 Bytes

Contents

describe SlackRubyBot::Commands::Help do
  def app
    SlackRubyBot::App.new
  end
  it 'help' do
    message = <<MSG
*Weather Bot* - This bot tells you the weather.

*Commands:*
*clouds* - Tells you how many clouds there're above you.
*command_without_description*
*What's the weather in <city>?* - Tells you the weather in a <city>.

*Other commands:*
*help* - Shows help information.
*hi* - Says hello.
*hello* - Says hello.

For getting description of the command use: *help <command>*

For more information see https://github.com/slack-ruby/slack-ruby-bot, please.
MSG

    expect(message: "#{SlackRubyBot.config.user} help").to respond_with_slack_message(message)
  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/help_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/commands/help_spec.rb