Sha256: 605d4db85c54953330b151e82ce49c26bf9f132e69ee283e1aa5f82f5a5442a2
Contents?: true
Size: 617 Bytes
Versions: 8
Compression:
Stored size: 617 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems