Sha256: 22bf160fc95d69e26abccd23f0c8940dbaa699ecf847213f469f12c2de837361
Contents?: true
Size: 430 Bytes
Versions: 6
Compression:
Stored size: 430 Bytes
Contents
require 'spec_helper' describe SlackRubyBot::Commands do let! :command do Class.new(SlackRubyBot::Commands::Base) do command 'send_message_spec' do |client, data, match| client.say(channel: data.channel, text: match['expression']) end end end it 'sends a message' do expect(message: "#{SlackRubyBot.config.user} send_message_spec message").to respond_with_slack_message('message') end end
Version data entries
6 entries across 6 versions & 1 rubygems