Sha256: 1669e41381910abb27b13383394283a59cdfe99c0d4da1ef6601a5bfb32cb5da

Contents?: true

Size: 615 Bytes

Versions: 13

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'

describe SlackRubyBot::Commands::Default do
  def app
    SlackRubyBot::App.new
  end
  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

13 entries across 13 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.7.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.6.2 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.6.1 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.6.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.5 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.4 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.3 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.2 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.1 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.5.0 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.4.5 spec/slack-ruby-bot/commands/about_spec.rb
slack-ruby-bot-0.4.4 spec/slack-ruby-bot/commands/about_spec.rb