Sha256: c6e8f223a822731fc2ab16fd53bb70bbd89c76d326efff9be08e21dedc84c704

Contents?: true

Size: 583 Bytes

Versions: 33

Compression:

Stored size: 583 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', gif: 'help')
    message_hook.call(client, Hashie::Mash.new(channel: 'channel', text: "#{SlackRubyBot.config.user} help"))
  end
end

Version data entries

33 entries across 20 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_mongoid/spec/commands/help_spec.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_activerecord/spec/commands/help_spec.rb