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