Sha256: d19976eb946dccb6c509b780e0683df54d6b9996e53e859305388b2d0cf847b3

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

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

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-bot-0.10.1 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.10.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.9.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.8.2 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.8.1 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.8.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.7.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.6.2 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.6.1 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.6.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb