Sha256: 43a3667d9f24bced636b82a83ff18960d4578e708ddaf885c9b1dea8084e3045

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

describe SlackRubyBot::Commands do
  let! :command do
    Class.new(SlackRubyBot::Commands::Base) do
      command 'empty_text'

      def self.call(client, data, _match)
        client.say(channel: data.channel)
      end
    end
  end
  it 'sends default text' do
    expect(message: "#{SlackRubyBot.config.user} empty_text", channel: 'channel', user: 'user').to respond_with_slack_message('')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-bot-0.16.1 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.16.0 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.15.0 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.14.0 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.13.0 spec/slack-ruby-bot/commands/empty_text_spec.rb