Sha256: 303673f3ec81014a7d9f2db9ac16167fabdc8f579eb7cef0e07557101951aa81
Contents?: true
Size: 611 Bytes
Versions: 6
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'commands/help' describe Help do let!(:team) { Fabricate(:team) } let(:app) { SlackRubyBotServer::RealTime::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
6 entries across 3 versions & 1 rubygems