Sha256: de14c4a40aac92899bab3bb8db97b8356356c3429d4a3ac4072ae66d1a66e7ea

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

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

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/commands/empty_text_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/commands/empty_text_spec.rb