Sha256: 730254d2d5a45be4dc5d6f6433428258fd6e5177b9df265faefd63cb4422d8d0

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

describe RSpec do
  let! :command do
    Class.new(SlackRubyBot::Commands::Base) do
      command 'raise'

      def self.call(_client, _data, match)
        raise ArgumentError, match[:command]
      end
    end
  end
  def app
    SlackRubyBot::App.new
  end
  it 'respond_with_error' do
    expect(message: "#{SlackRubyBot.config.user} raise").to respond_with_error(ArgumentError, 'raise')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-bot-0.10.5 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.10.4 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.10.3 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.10.2 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb