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