Sha256: b424c54c292170efab5626403ecf42c92e8694c27f8f91842a7f77184c8d6f2a

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

describe SlackRubyBot::Commands do
  let! :command do
    Class.new(SlackRubyBot::Commands::Base) do
      command 'send_message_spec' do |client, data, match|
        client.say(channel: data.channel, text: match['expression'])
      end
    end
  end
  it 'sends a message' do
    expect(message: "#{SlackRubyBot.config.user} send_message_spec message").to respond_with_slack_message('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/send_message_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.11.0 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/commands/send_message_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/commands/send_message_spec.rb