lita-onewheel-beer-pints 0.0.1 → 0.0.2
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: 26f39e62cf8c33b59382e2e7f6edcb8970a03d8f
|
4
|
+
data.tar.gz: fef4e83e47ac527b8864c6702a44a3e97190ec9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 192501fda4fcb1ea58fd561388db6e83f760ffdc92a59715e54ef054b888d0efa7d6335463a7e6155f245b8b7654fe16d1cb53db6b9cafd28a7607db9c71929a
|
7
|
+
data.tar.gz: 9d7c9c68f360a5c837f9769363b619f17ec1f5a75ce97ce49deea4f862b3b2dad21bd7071eac9da42700175fe63c60b194862507f191d355f9eeb308caa68f9d
|
@@ -46,7 +46,7 @@ module Lita
|
|
46
46
|
beers.each do |tap, datum|
|
47
47
|
reply += "#{tap}) "
|
48
48
|
reply += datum[:name] + ' '
|
49
|
-
|
49
|
+
reply += datum[:abv].to_s + '% '
|
50
50
|
# reply += datum[:ibu].to_s + ' IBU '
|
51
51
|
end
|
52
52
|
reply = reply.strip.sub /,\s*$/, ''
|
@@ -57,7 +57,7 @@ module Lita
|
|
57
57
|
|
58
58
|
def send_response(tap, datum, response)
|
59
59
|
reply = "Pints's tap #{tap}) "
|
60
|
-
reply += "#{datum[:name]} "
|
60
|
+
reply += "#{datum[:name]} - "
|
61
61
|
reply += datum[:abv].to_s + '% ABV '
|
62
62
|
reply += datum[:ibu].to_s + ' IBU '
|
63
63
|
reply += "- #{datum[:desc]}"
|
@@ -17,17 +17,17 @@ describe Lita::Handlers::OnewheelBeerPints, lita_handler: true do
|
|
17
17
|
|
18
18
|
it 'shows the taps' do
|
19
19
|
send_command 'pints'
|
20
|
-
expect(replies.last).to
|
20
|
+
expect(replies.last).to include("Pints taps: 1) Brick House Blonde 5.0% 2) Seismic IPA 6.2% 3) Rip Saw Red 6.5% 4) Steel Bridge Stout")
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'displays details for tap brick' do
|
24
24
|
send_command 'pints brick'
|
25
|
-
expect(replies.last).to eq("Pints's tap 1) Brick House Blonde 5.0% ABV 18 IBU - She’s blonde and refreshing! She’s mighty mighty! Brewed with perfect proportions of Northwest hops and malts for a beer that makes an old man wish for younger days. This session ale lets it all hang out with easy drinkability and a light malt finish. …what a winning hand!")
|
25
|
+
expect(replies.last).to eq("Pints's tap 1) Brick House Blonde - 5.0% ABV 18 IBU - She’s blonde and refreshing! She’s mighty mighty! Brewed with perfect proportions of Northwest hops and malts for a beer that makes an old man wish for younger days. This session ale lets it all hang out with easy drinkability and a light malt finish. …what a winning hand!")
|
26
26
|
end
|
27
27
|
|
28
28
|
it 'displays details for tap 7' do
|
29
29
|
send_command 'pints 7'
|
30
30
|
puts replies.last
|
31
|
-
expect(replies.last).to include("Pints's tap 7) Chocolate Blood Orange Candi Biere 5.9% ABV 24 IBU - This brew is inspired by the")
|
31
|
+
expect(replies.last).to include("Pints's tap 7) Chocolate Blood Orange Candi Biere - 5.9% ABV 24 IBU - This brew is inspired by the")
|
32
32
|
end
|
33
33
|
end
|