Sha256: b38e312d55e2e9ff3bac26d3bb84227beab79841011538c758cf2e6d7965cdaa

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

describe SlackRubyBot::Commands do
  let! :command do
    Class.new(SlackRubyBot::Commands::Base) do
      command '(' do |client, data, match|
        client.say(channel: data.channel, text: "#{match[:command]}: #{match[:expression]}")
      end
    end
  end
  def app
    SlackRubyBot::App.new
  end
  it 'does not return error' do
    expect(message: "#{SlackRubyBot.config.user} ( /").to respond_with_slack_message('(: /')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb