flights_gui_tests 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdbef1b5ddd1d76457eab9d39fdf0883607573bb
4
- data.tar.gz: 143eb30a2d4d217a81c6c9e12764c095efae9b1c
3
+ metadata.gz: 379519bd20161c5ffd24d773a84f3c7396631c19
4
+ data.tar.gz: d184b76c4f41852c00ef6164adb2a5b35d1926c2
5
5
  SHA512:
6
- metadata.gz: f135a0c0c7cd9f50a3c56036e9e0003e7b4ca670befaa01d52f089355cbfbb4c8a52a50254553d3c95b90b855360148c104c764d44691e457d032007e580a9e6
7
- data.tar.gz: 91bc908a1021c7cd0538162d0cb3e2e54f9a39b9a4fcd79717a337c7dd7f5cbc804efebfb63a7e422a0f038d912a7a9070aa4cc3ba4b7b84d50921e122c6d5be
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 !(p_html/"span#secondary-currency").empty?
71
- @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)
72
- elsif !(p_html/"li.adult-price").empty?
73
- @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)
74
- end
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)
@@ -15,7 +15,7 @@
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
17
 
18
- gem.version = '0.0.10' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez,lsimean