lita-onewheel-baileys 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b1cbf1630a83ce7882107b8f1b7ffb826e2b426
|
4
|
+
data.tar.gz: a1826b91291307ddbc519c46fb9a08510e9cf220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d7def847c3274e30e81cb8601efda12b38d44b52d76ad55be719f4925e99ca0abc8022d39441a5547ba7d57db31f4fc5b25c357b9a619bd7e82c056bfc7b1a
|
7
|
+
data.tar.gz: 93e83ea64af1514633bdd70e7ce61516ca478dd11f7311cf6f0752f32000eaa93cb90aafe38eff40cd8197dbd051c07924f8c56a0e96842636cba29aeecd8649
|
@@ -33,7 +33,8 @@ module Lita
|
|
33
33
|
beers.each do |tap, datum|
|
34
34
|
query = response.matches[0][0]
|
35
35
|
if tap == query or (query =~ /nitro/i and tap.match('Nitro')) or (query =~ /cask/i and tap.match('Cask'))
|
36
|
-
reply = "#{
|
36
|
+
reply = "#{tap}) "
|
37
|
+
reply += "#{datum[:brewery]} "
|
37
38
|
reply += "#{datum[:beer]}"
|
38
39
|
reply += "#{datum[:desc]}, "
|
39
40
|
# reply += "Served in a #{datum[1]['glass']} glass. "
|
@@ -16,21 +16,21 @@ describe Lita::Handlers::OnewheelBaileys, lita_handler: true do
|
|
16
16
|
|
17
17
|
it 'displays details for tap 4' do
|
18
18
|
send_command 'taps 4'
|
19
|
-
expect(replies.last).to eq('Wild Ride Abbey Dubbel – Barrel Aged (Pinot Noir) 8.2%, 4oz Pour – $4 | 12oz – $7, 26% remaining')
|
19
|
+
expect(replies.last).to eq('4) Wild Ride Abbey Dubbel – Barrel Aged (Pinot Noir) 8.2%, 4oz Pour – $4 | 12oz – $7, 26% remaining')
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'doesn\'t explode on 1' do
|
23
23
|
send_command 'taps 1'
|
24
|
-
expect(replies.last).to eq('Cider Riot! Apple Cider w/ Irish tea 6.0%, 10oz – $4 | 20oz – $7 | 32oz Crowler $10, 48% remaining')
|
24
|
+
expect(replies.last).to eq('1) Cider Riot! Apple Cider w/ Irish tea 6.0%, 10oz – $4 | 20oz – $7 | 32oz Crowler $10, 48% remaining')
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'gets nitro' do
|
28
28
|
send_command 'taps nitro'
|
29
|
-
expect(replies.last).to eq('Backwoods Brown Ale 6.2%, 10oz – $3 | 20oz – $5, 98% remaining')
|
29
|
+
expect(replies.last).to eq('Nitro 6) Backwoods Brown Ale 6.2%, 10oz – $3 | 20oz – $5, 98% remaining')
|
30
30
|
end
|
31
31
|
|
32
32
|
it 'gets cask' do
|
33
33
|
send_command 'taps cask'
|
34
|
-
expect(replies.last).to eq('Machine House ESB 4.0%, 10oz – $3 | 20oz – $5, 57% remaining')
|
34
|
+
expect(replies.last).to eq('Cask 3) Machine House ESB 4.0%, 10oz – $3 | 20oz – $5, 57% remaining')
|
35
35
|
end
|
36
36
|
end
|