Sha256: fc5c247fc20a92f95b185a86a1382e6e30b65a039c903d0d40b90cac03434ea4
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
require 'spec_helper' require 'commands/help' describe Help do let!(:team) { Fabricate(:team) } let(:app) { SlackRubyBotServer::Server.new(team: team) } let(:client) { app.send(:client) } let(:message_hook) { SlackRubyBot::Hooks::Message.new } it 'default' do expect(client).to receive(:say).with(channel: 'channel', text: [Help::HELP, SlackRubyBotServer::INFO].join("\n")) expect(client).to receive(:say).with(channel: 'channel') message_hook.call(client, Hashie::Mash.new(channel: 'channel', text: "#{SlackRubyBot.config.user} help")) end end
Version data entries
4 entries across 2 versions & 1 rubygems