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

Version Path
slack-ruby-bot-bhe-0.5.5.3 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.7.0 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.6.2 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.6.1 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.6.0 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.5 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.4 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.3 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.2 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.1 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.5.0 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.5 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.4 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.3 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.2 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.1 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb
slack-ruby-bot-0.4.0 spec/slack-ruby-bot/rspec/respond_with_error_spec.rb