Sha256: 83bfab59e742e5ed35dee9e59fdce15cc06bd53cb88f283d0849ca9cd4cdb4d6

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'

describe SlackRubyBot::Commands do
  let! :command do
    Class.new(SlackRubyBot::Commands::Base) do
      command '(' do |client, data, match|
        send_message client, data.channel, "#{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

7 entries across 7 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.5 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.4 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.3 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.2 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.1 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb
slack-ruby-bot-0.5.0 spec/slack-ruby-bot/commands/commands_regexp_escape_spec.rb