Sha256: be84678b821614899decfe440e5506cfe19c199c549a8d720011900276c2105c

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'spec_helper'

describe Lita::Handlers::Butt, lita_handler: true do
  subject { described_class.new(robot) }

  it { is_expected.to route('butt').to(:butt) }
  it { is_expected.to route('btt').to(:butt) }
  it { is_expected.to route('buuuuuutt').to(:butt) }

  describe '#butt' do
    it 'replied with a butt' do
      send_message 'butt'
      expect(replies.last).to eq '(_)_)'
    end

    it 'replied with a big ol butt' do
      send_message 'buuuuuuuuuutt'
      expect(replies.last).to eq '(__________)__________)'
    end

    it 'replies with a small butt' do
      send_message 'btt'
      expect(replies.last).to eq '())'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-butt-0.1.0 spec/lita/handlers/butt_spec.rb