Sha256: 7108b2d10c47003b9183bf47e614d1f0e01b387c7548dfa80612d06263754532
Contents?: true
Size: 425 Bytes
Versions: 17
Compression:
Stored size: 425 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) fail 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
17 entries across 17 versions & 2 rubygems