Javi Martín
02b8bc6f69
Simplify the way to freeze time in specs
2018-09-19 14:10:18 +02:00
Javier Martín
735eab8e71
Avoid date changes during residence tests.
...
As it happened with results (commit 4a559ed ), these tests failed if
`Date.current` changes between the moment records are created and the
moment the rest of the test is executed.
2018-07-09 00:17:15 +02:00
Javier Martín
de0afe1621
Don't monkey patch ActiveSupport.
...
It could have side effects (for example, a conflict after upgrading to
Rails 5).
Thanks @aitbw for the suggestion!
2018-07-09 00:06:55 +02:00
Javier Martín
4a559ed3cd
Avoid date changes during results tests.
...
As explained by @iagirre with pinpoint accuracy [1]:
"If the officer_assignments are created at 23:59:59 and the rest of the
test is executed after 00:00:00, the dates for the objects and the
`Date.current` (used to check if there are any shifts today) won't be
the same, because the shift will be for, lets say, 07/03/2018 and
`Date.current` will be 08/03/2018, so, there are no shifts."
Freezing time avoids this issue.
Related to issues #2520 and #2521 .
[1] https://github.com/AyuntamientoMadrid/consul/pull/1342
2018-07-09 00:06:55 +02:00
decabeza
16ff5c4400
Hides sidebar menus if officer has no shifts assigned
2018-07-04 17:22:03 +02:00
Vicente Mendoza
910d49d18c
Focus the search of the button
2018-02-09 12:51:15 +01:00
Bertocq
34bb9d65b1
Enable RSpec/NotToNot cop and fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
2018-01-07 17:39:48 +01:00
BertoCQ
c6d683083f
Merge pull request #2073 from consul/feature/2072#remove_question_valid_answers
...
Remove valid answers usage
2017-10-18 11:52:14 +02:00
Bertocq
39f23d3b7b
Switch from valid_answers to question_answers on specs
2017-10-18 01:28:38 +02:00
Bertocq
04910fea5b
Remove officing results date picker for current date
2017-10-17 21:00:19 +02:00
Bertocq
24ef7984a3
Include the answerable by user scope back on Poll list for officer voting panel
2017-10-04 17:05:25 +02:00
Bertocq
2900104a07
Show only active polls from the shifts assigned to officer on vote panel
2017-10-04 13:11:13 +02:00
Bertocq
85087b0bea
Check officer value for Poll Voter created from officing panel
2017-10-04 01:09:51 +02:00
Bertocq
b5cf28cb35
Swap Poll White/Null/Total usage for Poll Recount
2017-10-02 15:46:49 +02:00
Bertocq
9c6a974bec
Fix wrong spectations after final result swap for total result
2017-09-19 18:54:37 +02:00
Bertocq
e8d748a881
Add Poll Total recount to officing and admin
2017-09-14 15:33:58 +02:00
Bertocq
f7568a394f
Remove officing final recounts controller, spec and view
2017-09-14 13:39:21 +02:00
Bertocq
c40294e931
Remove officing recount feature
2017-07-23 23:28:38 +02:00
Bertocq
15c92b27c8
Fix Style/BlockDelimiters rubocop issues and remove it from rubocop_todo list
2017-06-19 10:45:18 +02:00
rgarcia
551421a621
removes poltergeist no js_errors driver
2017-05-04 01:48:17 +02:00
Juanjo Bazán
58b1ad950a
fix bug storing null results as white results
2017-02-18 12:11:49 +01:00
kikito
a8b653739c
makes officing residence spec verify users
2017-02-14 17:30:22 +01:00
kikito
8ca4cc22b0
Adds specs for creating failed officing census calls
2017-02-12 14:22:46 +01:00
Juanjo Bazán
2a902c68eb
adds creation of null and white results by poll officers
2017-02-03 19:11:04 +01:00
Juanjo Bazán
b88de40ebe
restricts access to residence validations to assigned officers
2017-02-03 10:43:03 +01:00
Raimond Garcia
3dd33c4247
Merge pull request #1388 from consul/recounting
...
Creation of Partial Results for Poll Officers
2017-02-02 16:39:24 +01:00
Juanjo Bazán
f060969422
adds changes logging to poll partial results
2017-02-02 16:26:21 +01:00
Juanjo Bazán
ec8d45f3cd
adds index view for poll results in officing
2017-02-02 16:10:40 +01:00
Juanjo Bazán
592fdffe4e
adds results creation by poll officers
2017-02-02 14:44:44 +01:00
Alberto Garcia Cabeza
62f946525e
updates texts on specs
2017-02-02 12:57:27 +01:00
Juanjo Bazán
1f985ef8f3
adds link to results for each final recount in officing
2017-02-02 11:53:57 +01:00
Juanjo Bazán
5f55c9a10f
fixes spec
2017-02-02 11:53:57 +01:00
rgarcia
2bc4649aa7
uses year of birth instead of date of birth
2017-02-01 11:13:59 +01:00
Juanjo Bazán
09a9761c87
removes daily recounts from officers doing final recounts
2017-01-31 11:37:19 +01:00
Juanjo Bazán
70d00a9768
adds all recounts to offering final recounts list
...
so poll officers can compare
2017-01-30 20:16:02 +01:00
Juanjo Bazán
72ac75abeb
adds final recounting to poll officers' zone
2017-01-30 17:44:39 +01:00
rgarcia
6c34599e1e
adds officer residence check and user voting
2017-01-29 00:36:20 +01:00
Juanjo Bazán
909dce00e0
adds recounting spec
2017-01-04 13:52:11 +01:00