Sha256: 735efbc30828ba45d682fde24434ed2dc26879823dd6622b41e062b9bf20ad98
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
require_relative '../../spec_helper' describe Lita::Handlers::OnewheelBeerBtu, lita_handler: true do it { is_expected.to route_command('btu') } it { is_expected.to route_command('btu 4') } it { is_expected.to route_command('btu <$4') } it { is_expected.to route_command('btu <=$4') } it { is_expected.to route_command('btu >4%') } it { is_expected.to route_command('btu >=4%') } it { is_expected.to route_command('btuabvhigh') } it { is_expected.to route_command('btuabvlow') } before do mock = File.open('spec/fixtures/btu.txt').read allow(Lita::Handlers::OnewheelBeerBtu).to receive(:pull_pdf) { mock } end it 'shows the taps' do send_command 'btu' expect(replies.last).to include("BTU taps: 1) BRUMATOR - 8.7% 2) HORNED HAND - 9.5% 3) JADE TIGER IPA - 6.8% 4) BTU LAGER - 5.8% 5) GHOSTMAN WHITE LAGER - 5.4% 6) BUTTAH-NUT GOSE - 4.9% 7) WET TIGER IPA - 6.8% 8) IMPERIAL RED - 8.3%") end it 'displays details for tap jade' do send_command 'btu jade' expect(replies.last).to eq("BTU's tap 7) WET TIGER IPA - 6.8% ABV ?? IBU - Our standard Jade Tiger IPA recipe made with fresh mosaic hops. It’s the most wonderful time of the year!") end it 'displays details for tap 7' do send_command 'btu 7' expect(replies.last).to include("BTU's tap 7) WET TIGER IPA - 6.8% ABV ?? IBU - Our standard Jade Tiger IPA recipe made with fresh mosaic hops. It’s the most wonderful time of the year!") end it 'displays details for tap 5' do send_command 'btu 5' expect(replies.last).to include("BTU's tap 5) GHOSTMAN WHITE LAGER - 5.4% ABV 16 IBU - An unfiltered wheat lager using oats to create a creamy head. Coriander and orange peel give this lager its floral aroma.") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-onewheel-beer-btu-0.0.0 | spec/lita/handlers/onewheel_beer_btu_spec.rb |