Sha256: 55f5561d88b06c7b4ac88f1881ccc04b6680b76e79576396712349e3d9f97bc6
Contents?: true
Size: 542 Bytes
Versions: 8
Compression:
Stored size: 542 Bytes
Contents
describe SlackRubyBot::Bot do let! :command do Class.new(SlackRubyBot::Bot) do command 'bot_spec' do |client, data, match| client.say(channel: data.channel, text: match['expression']) end end end def app SlackRubyBot::Bot.instance end it 'registers subclass command' do expect(SlackRubyBot::Commands::Base.command_classes).to include command end it 'sends a message' do expect(message: "#{SlackRubyBot.config.user} bot_spec message").to respond_with_slack_message('message') end end
Version data entries
8 entries across 8 versions & 1 rubygems