Sha256: 371326124c6e63e76fa04bf6c46b30a1cbcbe90e46ea421104776fde0c6278f8

Contents?: true

Size: 782 Bytes

Versions: 5

Compression:

Stored size: 782 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-bot-0.16.1 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.16.0 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.15.0 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.14.0 spec/slack-ruby-bot/commands/help_spec.rb
slack-ruby-bot-0.13.0 spec/slack-ruby-bot/commands/help_spec.rb