flights_gui_tests 2.3.11 → 2.3.12

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: 22a7e957779fed7301f9721a582861f69874eed8
4
- data.tar.gz: 79ebc8deaf900db52cfe6862cb5d74c953298bc1
3
+ metadata.gz: cc0c6e04c2e6acdbf2b102d6990425b799eb8575
4
+ data.tar.gz: 04be0898326d1569c5d2a5ca4270ae23ab0ae3c6
5
5
  SHA512:
6
- metadata.gz: b6c87a261130eb221a85221235a464abe5fb204d8d617c311499042b4e04a9515f878362962e43b53d5ebcfb44277360f0bdfaa782e4c23af51ac570ae50d2d5
7
- data.tar.gz: d770f3406d3a9dc1d2c8541f98ae5769a0252ba2e7311a2b39f08361d38d4dc27d730b687754c55a70a201d6cf2e6a42ad5be86d19ca1bc8b66501c26dd33220
6
+ metadata.gz: b1656ee28a93f61981dae2b6523785f75f02371f9cc3be60ec28727b13263f2aa4d5d4575c15b42a4046353b8177c803c8f7faaa7c6bd3e3f16564ac710865d5
7
+ data.tar.gz: 59baf203a078e484c3889c4648be35f8b08ac918c650f95bd42eb676906b62e4480cee79f3b6b04ade5937dd2cc829d7c6143e31ab7f9abccf82a8c258644fd0
@@ -61,20 +61,20 @@ module NewCheckout
61
61
  def cargar_precios(html)
62
62
  @tarifas = Hash.new
63
63
  if (html/".adult-price span.price-currency").first
64
- @tarifas['tarifa_adulto'] = Price.new((html/".adult-price span.price-currency").first.inner_text.strip)
64
+ @tarifas['tarifa_adulto'] = Price.new((html/".adult-price span.price-currency").first.inner_text.strip.gsub(',','.'))
65
65
  else
66
- @tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price-conversion span#local-currency").first.inner_text.strip)
66
+ @tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price-conversion span#local-currency").first.inner_text.strip.gsub(',','.'))
67
67
  end
68
- @tarifas['adt'] = Price.new((html/"li.adult_fare span.price-currency").first.inner_text.strip.gsub(/\D/,''))
69
- @tarifas['cnn'] = (html/"li.child_fare").first ? Price.new((html/"li.child_fare span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
70
- @tarifas['inf'] = (html/"li.infant_fare").first ? Price.new((html/"li.infant_fare span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
71
- @tarifas['tasas'] = (html/"li.taxes").first ? Price.new((html/"li.taxes span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
72
- @tarifas['cargos'] = (html/"li.charges").first ? Price.new((html/"li.charges span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
73
- @tarifas['afip'] = (html/"li.tax_afip").first ? Price.new((html/"li.tax_afip span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
74
- @tarifas['encargos'] = (html/"li.service_taxes").first ? Price.new((html/"li.service_taxes span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
75
- @tarifas['seguros'] = (html/"li.destination_service_insurance").first ? Price.new((html/"li.destination_service_insurance span.price-currency").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
76
- @tarifas['descuento'] = (html/"li.payment_discount").first ? Price.new((html/"li.payment_discount span.price-currency span.currency").first.inner_text.strip.gsub(/\D/,'')+" "+((html/"li.payment_discount span.price-currency span.amount").first.inner_text.strip.gsub(/\D/,'').to_i*-1).to_s) : Price.new("$ 0",true)
77
- @tarifas['total'] = (html/"span#total-price").first ? Price.new((html/"span#total-price").first.inner_text.strip.gsub(/\D/,'')) : Price.new("$ 0",true)
68
+ @tarifas['adt'] = Price.new((html/"li.adult_fare span.price-currency").first.inner_text.strip.gsub(',','.'))
69
+ @tarifas['cnn'] = (html/"li.child_fare").first ? Price.new((html/"li.child_fare span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
70
+ @tarifas['inf'] = (html/"li.infant_fare").first ? Price.new((html/"li.infant_fare span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
71
+ @tarifas['tasas'] = (html/"li.taxes").first ? Price.new((html/"li.taxes span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
72
+ @tarifas['cargos'] = (html/"li.charges").first ? Price.new((html/"li.charges span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
73
+ @tarifas['afip'] = (html/"li.tax_afip").first ? Price.new((html/"li.tax_afip span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
74
+ @tarifas['encargos'] = (html/"li.service_taxes").first ? Price.new((html/"li.service_taxes span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
75
+ @tarifas['seguros'] = (html/"li.destination_service_insurance").first ? Price.new((html/"li.destination_service_insurance span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
76
+ @tarifas['descuento'] = (html/"li.payment_discount").first ? Price.new((html/"li.payment_discount span.price-currency span.currency").first.inner_text.strip.gsub(',','.')+" "+((html/"li.payment_discount span.price-currency span.amount").first.inner_text.strip.gsub(/\D/,'').to_i*-1).to_s) : Price.new("$ 0",true)
77
+ @tarifas['total'] = (html/"span#total-price").first ? Price.new((html/"span#total-price").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
78
78
  end
79
79
 
80
80
  def validar_suma_desgloce(linea = "total|tarifa_adulto|tarifa_adulto_dolar")
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.11"
2
+ VERSION = "2.3.12"
3
3
  end
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: 2.3.11
4
+ version: 2.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez