flights_gui_tests 0.0.10 → 0.0.11
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: 379519bd20161c5ffd24d773a84f3c7396631c19
|
4
|
+
data.tar.gz: d184b76c4f41852c00ef6164adb2a5b35d1926c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7650b9cf0c7696757257a7626baf7969adc2957590bf36d902935f264a8f17a77c7a57681a7dc4353523e068c0db0bfc9bb6c87f8e56c14178f22c14d3e30413
|
7
|
+
data.tar.gz: e89e95e84d7d7e267b29c45909b15b2ee02dcf78ae56ce7f619361e18839083d2d8f76844bbbb8c3cb05bc048bac8af6defe6d3bbe7e22bcf8a7f2372947434d
|
@@ -67,11 +67,11 @@ module Checkout
|
|
67
67
|
def load_prices(p_html)
|
68
68
|
|
69
69
|
@tarifas = Hash.new
|
70
|
-
if
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
if (p_html/"span#secondary-currency").empty?
|
71
|
+
@tarifas['tarifa_adulto'] = Price.new((p_html/"li.adult-price span[@class='price-currency'] span.currency").first.inner_text.strip + " " + (p_html/"li.adult-price span[@class='price-currency'] span.amount").first.inner_text.strip)
|
72
|
+
else
|
73
|
+
@tarifas['tarifa_adulto'] = Price.new((p_html/"div.adult-price-conversion span#local-currency span.code").first.inner_text.strip + " " + (p_html/"div.adult-price-conversion span#local-currency span.amount").first.inner_text.strip)
|
74
|
+
end
|
75
75
|
|
76
76
|
adt = (p_html/"li.adult_fare").select{|li| li.inner_text.no_accents.downcase =~ /adulto|adult/}.first
|
77
77
|
@tarifas['adt'] = adt ? Price.new((adt/"span.currency").first.inner_text.strip + " " + (adt/"span.amount").first.inner_text.strip) : Price.new("$ 0",true)
|
data/flights_gui_tests.gemspec
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '0.0.
|
18
|
+
gem.version = '0.0.11' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
19
19
|
|
20
20
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
21
21
|
gem.add_dependency('page-object')
|