flights_gui_tests 2.2.9 → 2.3.0

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: 136395cd55a803fbbb180fe9f5d11429459d9ee0
4
- data.tar.gz: 7b1ab78ae53fe11628751da95017c36944e59991
3
+ metadata.gz: f330012ec2e32c26d8c81659367a4f59b7f854fc
4
+ data.tar.gz: 443504770bcfadecaada1d2af1ec54677917a6ec
5
5
  SHA512:
6
- metadata.gz: f39d8355d1df784741a956546895127a33d0910a1d2912746fd79d277ae315795412b85e7d467207a3448c800b67b88db1d573c0aca784611f6329a16b4161a0
7
- data.tar.gz: fb56fdd2c7609d854a792049982a01117c80b27a168e2acaa27a03b15b31083b5f6fee43164c3b0f6d270dc051e50d5dc909a14bfd1c7c97d8be91e78b243991
6
+ metadata.gz: 742d9b34e2b3b80fe1915e1137b906f629a460620ee5aba2d5f3900ba4d1b39cadfbe95904fb3217160d7a96c46542d07fb36c9602ba9a439d1437ccdcf71ded
7
+ data.tar.gz: 65b35b37e4a6bb9c954f07e69c65de73f0175ebcdd0c5915a1c80c309d7e614c18f7d5d13d0bb6a1b805fcbcfe8883a4e62284d9024731e3b95f949e1dc36110
@@ -34,8 +34,8 @@ Y(/^(?:verifico|valido) los valores del desglose en gracias contra los del check
34
34
  unless @itinerario_checkout.tarifas['total'].zero?
35
35
  @itinerario_checkout.tarifas['total'].should equal(@itinerario_gracias.tarifas['total'])
36
36
  end
37
+ @itinerario_gracias.ida.should equal(@itinerario_checkout.ida)
37
38
  end
38
- @itinerario_gracias.ida.should equal(@itinerario_checkout.ida)
39
39
  end
40
40
 
41
41
  Entonces(/^(?:verifico|valido) los datos del vuelo comprado$/) do
@@ -50,7 +50,7 @@ module NewCheckout
50
50
  vuelo_tmp['nombre'] = (vuelo/"li.location-name").inner_text.strip.no_accents
51
51
  vuelo_tmp['fecha'] = (vuelo/"li.date").inner_text.strip.no_accents
52
52
  @fechas << vuelo_tmp['fecha']
53
- vuelo_tmp['horario'] = (vuelo/"li.time").inner_text.gsub(/hs|h/,'').strip
53
+ vuelo_tmp['horario'] = Time.parse((vuelo/"li.time").inner_text.gsub(/hs|h/,'').strip)
54
54
  return vuelo_tmp
55
55
  end
56
56
 
@@ -35,8 +35,8 @@ module OldCheckout
35
35
  aerolinea << aer.attributes['src'].match(/(..).png/)[1].upcase
36
36
  i = i + 1
37
37
  end
38
- hou_sal_ida = Time.parse((div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
39
- hou_lle_ida = Time.parse((div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
38
+ hou_sal_ida = Time.parse((div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
39
+ hou_lle_ida = Time.parse((div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
40
40
  @idas << DataCluster.new(origen,destino,fecha, aerolinea, escala_to_i(escala),origen_iata,destino_iata,hou_sal_ida,hou_lle_ida)
41
41
  end
42
42
  @nro_vuelo_ida = 0
@@ -57,8 +57,8 @@ module OldCheckout
57
57
  aerolinea << aer.attributes['src'].match(/(..).png/)[1].upcase
58
58
  i = i + 1
59
59
  end
60
- hou_sal_ida = Time.parse((div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
61
- hou_lle_ida = Time.parse((div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
60
+ hou_sal_ida = Time.parse((div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
61
+ hou_lle_ida = Time.parse((div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)") ? (div_datos/"li.outbound").last.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents : (div_datos/"li.outbound").first.inner_html.to_s.match("(.*)\<\/span\>(.*)hs(.*)\<a(.*)")[2].strip.no_accents)
62
62
  @vueltas << DataCluster.new(origen,destino,fecha, aerolinea, escala_to_i(escala),origen_iata,destino_iata,hou_sal_ida,hou_lle_ida)
63
63
  end
64
64
  @nro_vuelo_vuelta = 0
@@ -43,8 +43,8 @@ module Thanks
43
43
  escala_to_i((segmento/"span.stops-text").inner_text.strip), #escalas
44
44
  (segmento/"span.departure a.airport").first.inner_text.strip.no_accents, #iata ciudad salida
45
45
  (segmento/"span.arrival a.airport").first.inner_text.strip.no_accents, #iata ciudad llegada
46
- (segmento/"span.hour").first.inner_text.gsub(/hs|h/,'').strip, #horario salida
47
- (segmento/"span.hour").last.inner_text.gsub(/hs|h/,'').strip, #horario llegada
46
+ Time.parse((segmento/"span.hour").first.inner_text.gsub(/hs|h/,'').strip), #horario salida
47
+ Time.parse((segmento/"span.hour").last.inner_text.gsub(/hs|h/,'').strip), #horario llegada
48
48
  (segmento/"li.duration").inner_text.strip #duracion
49
49
  )
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.2.9"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container