flights_gui_tests 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/support/classes/results/new_cluster.rb +11 -6
- data/features/support/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb4033c0655c597b33656d861b569ae7fa1e5a75
|
4
|
+
data.tar.gz: 938cbd810303ab0c34c1ac8851e8881efe59aaae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd21bff3dfc18f9d3051e120e79c7c686eebf431ce86db910a3d4f216d78c5df5c2fd21bc245ab7644d11660841772999e13f9c932da0a4fb969e75c8462e6e
|
7
|
+
data.tar.gz: e15ea7997416d09c426cfe2f87d90fbba17f741d5bd7362b1e1c38b4f44aa5089118383dd41ef3f06e697bbb09ce64dede19849f51fdc2ae7059956837f18c48
|
@@ -52,12 +52,17 @@ module Results
|
|
52
52
|
def cargar_precios(html)
|
53
53
|
@tarifas = Hash.new
|
54
54
|
@tarifas['tarifa_adulto_dolar'] = Price.new((html/"span.price-currency span.currency").first.inner_text.strip + " " + (html/"span.price-currency span.amount").first.inner_text.strip)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
55
|
+
|
56
|
+
if (html/"li.total-price-only span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first
|
57
|
+
@tarifas['tarifa_adulto'] = Price.new("$ 0",true)
|
58
|
+
else
|
59
|
+
if (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first
|
60
|
+
@tarifas['tarifa_adulto'] = Price.new((html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first.inner_text.strip + " " + (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.amount").first.inner_text.strip)
|
61
|
+
else
|
62
|
+
@tarifas['tarifa_adulto'] = @tarifas['tarifa_adulto_dolar']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
61
66
|
adt = (html/"li").select{|li| li.inner_text.no_accents.downcase =~ /adulto/}.first
|
62
67
|
@tarifas['adt'] = adt ? Price.new((adt/"span.currency").first.inner_text.strip + " " + (adt/"span.amount").first.inner_text.strip) : Price.new("$ 0",true)
|
63
68
|
|
data/features/support/version.rb
CHANGED