flights_gui_tests 0.5.5 → 0.5.6
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: d761ad142503eac409b10f8ac578d6841c047bd6
|
4
|
+
data.tar.gz: 6c79e16af01a31f2ec747de1fd10864c74dd0399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da279b4f6e3766f40242840549c0e1abe4b35ea57e238da9ba94179aab3b43783ea319eaa9e6dabe18638d61596b0fc52e7490f50032582033aff987cd42102
|
7
|
+
data.tar.gz: 3f6ba79856ad0a0461df1a9802afd2291001f773302342a8a39de63f46322bf29f25fe25598eed6bb40b6ae0b3ace97bf30dd09d1d70a5d8303fd685a4affbf5
|
@@ -81,7 +81,7 @@ Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al l
|
|
81
81
|
Date.parse_new_result((doc/"div.ticket-right div.dates li.outbound-route span.date").inner_text).should equal(@itinerario_checkout.ida.fecha)
|
82
82
|
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"
|
83
83
|
else
|
84
|
-
fechas=@itinerario_checkout.
|
84
|
+
fechas=@itinerario_checkout.fechas
|
85
85
|
(doc/"div.ticket-right div.dates li.outbound-route span.date").each do |fecha|
|
86
86
|
fechas.should include?(Date.parse_new_result(fecha.inner_text))
|
87
87
|
end
|
@@ -4,6 +4,7 @@ module NewCheckout
|
|
4
4
|
attr_accessor :ida, :vuelta, :tarifas, :idas, :vueltas
|
5
5
|
|
6
6
|
def initialize(itinerario,html,page = 0)
|
7
|
+
@fechas = []
|
7
8
|
self.cargar_precios((html/"div.prices"))
|
8
9
|
eval "#{itinerario.downcase}(html)"
|
9
10
|
end
|
@@ -48,6 +49,7 @@ module NewCheckout
|
|
48
49
|
vuelo_tmp['iata'] = (vuelo/"a.city-code").inner_text.strip
|
49
50
|
vuelo_tmp['nombre'] = (vuelo/"li.location-name").inner_text.strip.no_accents
|
50
51
|
vuelo_tmp['fecha'] = (vuelo/"li.date").inner_text.strip.no_accents
|
52
|
+
@fechas << vuelo_tmp['fecha']
|
51
53
|
vuelo_tmp['horario'] = (vuelo/"li.time").inner_text.gsub(/hs/,'').strip
|
52
54
|
return vuelo_tmp
|
53
55
|
end
|
@@ -82,5 +84,9 @@ module NewCheckout
|
|
82
84
|
return escala.to_s.gsub(/\D/,'').to_i
|
83
85
|
end
|
84
86
|
|
87
|
+
def fechas
|
88
|
+
@fechas.collect{|fecha| Date.parse_new_result(fecha)}.uniq
|
89
|
+
end
|
90
|
+
|
85
91
|
end
|
86
92
|
end
|
data/flights_gui_tests.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
|
16
16
|
|
17
|
-
gem.version = '0.5.
|
17
|
+
gem.version = '0.5.6' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
18
18
|
|
19
19
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
20
20
|
gem.add_dependency('page-object')
|