flights_gui_tests 1.2.7 → 1.2.8

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: 8dec075fb905aed2fe6210b51b8ac25d3e5a8ea0
4
- data.tar.gz: 716df465b410374962fee8a4b9c3bf6a9f0a7561
3
+ metadata.gz: 9daf31dc32d5b053395738c582dd3e1a78a96034
4
+ data.tar.gz: 2c88765c63fb77b5c8cb283f477e63a69e0199c1
5
5
  SHA512:
6
- metadata.gz: 221d5bcafcdcb03a0975d30a2dcd599428764d55a4a61b79b88b0a004653d440e6f0722c4cad12f636bc13f66d593eba8371e8d7dd3ed8568c6416f8327df10c
7
- data.tar.gz: f26a92b8192193c3550c17ed133ac1f50c3a63e95739d1ba4b78765676f7ec9fe30a3d95698e8045698e2cf200600a274b881041bbbcefb03600cd42b1bb08ba
6
+ metadata.gz: 54a658315af12d75aafcb6cf9618ef122e343cdd21bc0873c0b6229d90449ff1683f4340d64dc5f2a99761ea3fce2530923cdb5d1019345f704d3a885b00b269
7
+ data.tar.gz: 46bfccc5536b536575558f0d9c74cb52a44e7157c6bcf150a0cb951913149de0239f86726af7bd6cd7a555ea04da1122910012d5fc46684cad24baac003e603e
@@ -85,9 +85,13 @@ Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al l
85
85
  Date.parse_new_result((doc/"div.ticket-right div.dates li.outbound-route span.date").inner_text).should equal(@itinerario_checkout.ida.fecha)
86
86
  Date.parse_new_result((doc/"div.ticket-right div.dates li.inbound-route span.date").inner_text).should equal(@itinerario_checkout.vuelta.fecha) if @page.tipo_de_busqueda=="roundtrip"
87
87
  else
88
- fechas=@itinerario_checkout.fechas
89
- (doc/"div.ticket-right div.dates li.outbound-route span.date").each do |fecha|
90
- fechas.should include?(Date.parse_new_result(fecha.inner_text))
91
- end
88
+ begin
89
+ fechas=@itinerario_checkout.fechas
90
+ (doc/"div.ticket-right div.dates li.outbound-route span.date").each do |fecha|
91
+ fechas.should include?(Date.parse_new_result(fecha.inner_text))
92
+ end
93
+ rescue NoMethodError
94
+ puts "Fallo con las fechas: #{@itinerario_checkout.fechas_fix}"
95
+ end
92
96
  end
93
97
  end
@@ -88,6 +88,10 @@ module NewCheckout
88
88
 
89
89
  def fechas
90
90
  @fechas.collect{|fecha| Date.parse_new_result(fecha)}.uniq
91
+ end
92
+
93
+ def fechas_fix
94
+ @fechas.join(" | ")
91
95
  end
92
96
 
93
97
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
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: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez