Sha256: 5c68b0f36dc783eb0c3fe1f6aaa01ac9e65aa8d81c3733c20c5342fc57b6274b
Contents?: true
Size: 426 Bytes
Versions: 6
Compression:
Stored size: 426 Bytes
Contents
require 'spec_helper' 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
6 entries across 6 versions & 1 rubygems