Sha256: 53278f8128d834223959b94216ef6c5a92d0aad88fb3cf462d3f544aabe57f48
Contents?: true
Size: 710 Bytes
Versions: 8
Compression:
Stored size: 710 Bytes
Contents
describe SlackRubyBot::Commands::Unknown do it 'invalid command' do expect(message: "#{SlackRubyBot.config.user} foobar").to respond_with_slack_message("Sorry <@user>, I don't understand that command!") end it 'invalid command with @bot:' do expect(message: "<@#{SlackRubyBot.config.user_id}>: foobar").to respond_with_slack_message("Sorry <@user>, I don't understand that command!") end it 'does not respond to sad face' do client = SlackRubyBot::Client.new message_hook = SlackRubyBot::Hooks::Message.new expect(SlackRubyBot::Commands::Base).to_not receive(:send_message) message_hook.call(client, Hashie::Mash.new(text: ':((', channel: 'channel', user: 'user')) end end
Version data entries
8 entries across 8 versions & 1 rubygems