Sha256: 8d6396e9600f3223c8e1133237f45f4ae075757459be8e7414ac6d0c1d4c6803
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' describe RSpec do let! :command do Class.new(SlackRubyBot::Commands::Base) do command 'raise' def self.call(_data, command, _arguments) fail ArgumentError, 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('raise') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-bot-0.2.0 | spec/slack-ruby-bot/rspec/respond_with_error_spec.rb |