uniara_virtual_parser 1.1.0 → 1.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7e1db9f84f2b497ec9eada71151409d421a0d8
|
4
|
+
data.tar.gz: 83dbbf36addeb919b810cd7bd029d1ea2efa939f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b24b7d5c0ecc522d51150918553e5456a9c452c7c579dbf46fb53054f1845dbb71b3111fc130dda28fcdf00e6bb71305c8ab871cf6a17585e2419228f1489d6
|
7
|
+
data.tar.gz: 2c618b7a09cdb20c2a1d907191893c797ac1903f4a8d334bf9d9024abf8746ac6cbff05222d5ca4613f25c800a4dcdd276134e0e795c57bf4b9746c362b5d9a6
|
@@ -16,8 +16,8 @@ module UniaraVirtualParser
|
|
16
16
|
next if index.zero?
|
17
17
|
absences << Models::Absence.new(
|
18
18
|
name: absence.css('td:nth-child(1)').text,
|
19
|
-
frequency: absence.css('td:nth-child(
|
20
|
-
total: absence.css('td:nth-child(
|
19
|
+
frequency: absence.css('td:nth-child(3)').text,
|
20
|
+
total: absence.css('td:nth-child(4)').text
|
21
21
|
)
|
22
22
|
end
|
23
23
|
absences
|
@@ -11,7 +11,8 @@ module UniaraVirtualParser
|
|
11
11
|
|
12
12
|
it 'fetches the content of uniara virtual and brings the array with absences' do
|
13
13
|
expect(absences.first.name).to eq "REDES DE COMPUTADORES"
|
14
|
-
expect(absences.first.frequency).to eq "
|
14
|
+
expect(absences.first.frequency).to eq "98%"
|
15
|
+
expect(absences.first.total).to eq "2"
|
15
16
|
expect(absences.length).to eq 2
|
16
17
|
end
|
17
18
|
end
|