Sha256: bd9da9c8180e29c8f4ba7f540698c51e35c94df2060760bf506f4a7a4200f429
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems