lita-onewheel-beer-pints 0.0.3 → 0.0.4
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: 5206324c6f4e59e9e09541d4365487cb886dd481
|
4
|
+
data.tar.gz: d22a0c1f3f9f43737f74683796f239af66db7d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ce31f7a90b463ac126099f3f50233070697490f6e62b4ebbf6501c4322dd2ed36b83ce1ca15119c1b790165623b67db01fec10e8fb9c6d4cf314c37ab7092c
|
7
|
+
data.tar.gz: eeb71119271a74a47bd082912511fab6fd25e3b69489225e96e637f20bc70f25e5668c496724895759725687ea11f0026e3b9f9e677977519703a049a6955e83
|
@@ -121,7 +121,8 @@ module Lita
|
|
121
121
|
data = beer_node.css('strong')
|
122
122
|
beer_name = data.children.first.to_s
|
123
123
|
beer_name.strip!
|
124
|
-
beer_name.sub! /\s
|
124
|
+
beer_name.sub! /\s*……….*ABV.*IBU/, ''
|
125
|
+
beer_name.sub! /………/, ''
|
125
126
|
beer_abv = data.children.last.to_s[/\d+\.\d+% ABV/]
|
126
127
|
beer_abv.sub! /% ABV/, ''
|
127
128
|
beer_ibu = data.children.last.to_s[/\d+ IBU/]
|
@@ -27,7 +27,12 @@ describe Lita::Handlers::OnewheelBeerPints, lita_handler: true do
|
|
27
27
|
|
28
28
|
it 'displays details for tap 7' do
|
29
29
|
send_command 'pints 7'
|
30
|
-
puts replies.last
|
31
30
|
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
31
|
end
|
32
|
+
|
33
|
+
it 'displays details for tap 5' do
|
34
|
+
send_command 'pints 5'
|
35
|
+
puts replies.last
|
36
|
+
expect(replies.last).to include("Pints's tap 5) You’re A Peach, Hon’ - 5.9% ABV 18 IBU - Matt, our human brewing machine, ")
|
37
|
+
end
|
33
38
|
end
|