Sha256: 31f7a0901b2bb1fa14053afad2f88b20f65e75bb3fbe25778d785b1ec5c52547

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

describe SlackRubyBot::Commands::Default do
  it 'lowercase' do
    expect(message: SlackRubyBot.config.user).to respond_with_slack_message(SlackRubyBot::ABOUT)
  end
  it 'upcase' do
    expect(message: SlackRubyBot.config.user.upcase).to respond_with_slack_message(SlackRubyBot::ABOUT)
  end
  it 'name:' do
    expect(message: "#{SlackRubyBot.config.user}:").to respond_with_slack_message(SlackRubyBot::ABOUT)
  end
  it 'id' do
    expect(message: "<@#{SlackRubyBot.config.user_id}>").to respond_with_slack_message(SlackRubyBot::ABOUT)
  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/about_spec.rb
slack-ruby-bot-0.16.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.15.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.14.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.13.0 spec/slack-ruby-bot/commands/about_spec.rb