Sha256: 6f36e145786cedce6c094113db4affaa5b25bf2364cc4ede517dc50d07161364
Contents?: true
Size: 471 Bytes
Versions: 10
Compression:
Stored size: 471 Bytes
Contents
require 'spec_helper' describe SlackRubyBot::Commands do let! :command do Class.new(SlackRubyBot::Commands::Base) do operator '=' operator '-' def self.call(client, data, match) client.say(channel: data.channel, text: "#{match[:operator]}: #{match[:expression]}") end end end def app SlackRubyBot::App.new end it 'supports operators' do expect(message: '=2+2').to respond_with_slack_message('=: 2+2') end end
Version data entries
10 entries across 10 versions & 1 rubygems