decabeza
cb22e6cbfb
Merge branch 'master' into proposal-dashboard
2019-04-23 17:12:47 +02:00
rgarcia
aeb84108bc
Verify poll ballots
2019-04-10 18:29:01 +02:00
María Checa
394177213c
Adds Ballot Sheet model and business logic
2019-04-10 16:04:39 +02:00
decabeza
94b8caffca
Merge branch 'master' into proposal-dashboard
2019-04-04 14:08:30 +02:00
rgarcia
7dd314c699
Do not display polls associated to a budget in admin poll questions
...
This section is used to select to which poll a question belongs to.
Budget polls are not meant to include questions that come from Citizen
Proposals or Government Questions, thus we do not display them
2019-04-03 22:20:01 +02:00
Javi Martín
f7f9fc15a5
Move todays_booths_for_officer to the model
...
This way we can easily add a test which will fail if by accident we
change the method to use `Date.today`. Until now using `Date.today`
would only fail if we ran specs in a time zone with a different date.
2019-03-28 15:49:17 +01:00
Bertocq
31428a5847
Add booth and officing assigments presence validation for booth votes, unskip specs
2019-03-28 15:47:52 +01:00
decabeza
91be3cf775
Fix more hound warnings
2019-03-27 15:22:14 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Javi Martín
8118926ba7
Simplify tests creating poll voters
2019-03-19 13:29:43 +01:00
Javi Martín
4a3115607a
Simplify poll stats test
...
Adding the option to assign a poll to a poll recount factory meant we
didn't need to create so much data.
Also note we're removing the `create(:poll_voter, origin: "booth")`
code, since it isn't used in the stats calculations.
2019-03-19 13:24:24 +01:00
rgarcia
8125d470de
Add methods to obtain polls votable by a user
2019-03-06 17:42:46 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
decabeza
bc1679550b
Remove incoming polls filter
2019-02-08 14:28:19 +01:00
rgarcia
b601f6c33f
adds method voted_by?(user) to polls
2018-12-05 14:31:58 +01:00
Javi Martín
ccdbdb26ba
Fix poll question with non-underscored locales
...
Ruby can't have hyphens in method names, so sending something like
`title_pt-BR=` would raise an exception.
2018-10-23 14:23:10 +02:00
Juan Salvador Pérez García
7c3213a55d
Refactored complex scope
...
Complex scope has been refactored into an static method. Added tests to
validate this new method.
2018-09-17 09:11:51 +02:00
Juan Salvador Pérez García
4b8cc85c49
Fixes #234
...
View questions now is View results and redirects to results
in public view.
Fixed flaky spec that was making the tests fail.
Added missing specs for polls feature as well as poll model.
2018-07-19 17:15:05 +02: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
0698043340
Fix indentations
2018-01-07 01:06:07 +01:00
Bertocq
ed16a78f42
Enables RSpec/ExampleWording and fixes all issues
...
Both avoiding 'should' and repiting 'it' on the tests description
improves reading them and also makes all descriptions consistent.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWording
2018-01-07 01:03:45 +01:00
Bertocq
265d4d0967
Enables RSpec/DescribedClass cop & fixes all issues
...
Autocorrection for existing issues, and stashing at .rubocop_todo.yml
the false positives
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
2018-01-07 00:38:19 +01:00
Bertocq
6ec6f64675
Enable RSpec/DescribeClass rubocop rspec cop & fix issues
...
Manually fixes all issues & "stashed" false positives at .rubocop_todo.yml
Read about the cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
2018-01-07 00:20:55 +01:00
Bertocq
c2b5083d4f
Fix missing and extra spacing
2017-12-16 17:59:16 +01:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
Raimond Garcia
9e12d67f3f
Merge pull request #2114 from wairbut-m2c/iagirre-booth-assignment-removal
...
Iagirre booth assignment removal
2017-11-28 19:59:20 +01:00
Bertocq
cd66ba5d54
Rubocop autocorrections
2017-11-13 02:22:00 +01:00
iagirre
4b8a471d38
Specs added to test the functionality and some UI modified to make test pass
2017-10-30 16:50:25 +01:00
Alberto García
91b8ed67f6
Merge pull request #2075 from wairbut-m2c/iagirre-poll-stats
...
Iagirre poll stats
2017-10-18 17:25:02 +02:00
iagirre
f7bb3ec8b7
Merge remote-tracking branch 'consul/master' into iagirre-poll-stats
2017-10-18 09:48:02 +02:00
iagirre
73365ad9d2
Added spects to check de stats model and view
2017-10-18 09:34:17 +02:00
Bertocq
36610f0c1a
Use poll question trait with_answers to generate yes/no answers
2017-10-18 02:06:34 +02:00
Bertocq
fbcf8678c3
Remove no longer needed question model tests for valid_answers
2017-10-18 01:28:59 +02:00
Bertocq
39f23d3b7b
Switch from valid_answers to question_answers on specs
2017-10-18 01:28:38 +02:00
Bertocq
7b40c84166
Rubocop fixes and rubocop todo update for those that can't be done right now
2017-10-17 22:23:53 +02:00
BertoCQ
d1c67212b0
Merge pull request #1964 from consul/chore/remove_results
...
Remove deprecated Poll results models
2017-10-17 14:39:42 +02:00
Bertocq
9146d68c53
Add current_or_recounting_or_incoming method to Poll model
2017-10-13 16:53:03 +02:00
Bertocq
ca2d9a1d68
Add recounting Poll scope with trait and spec
2017-10-13 16:51:58 +02:00
María Checa
84e35edca7
Added new tests for vote token
2017-10-07 16:16:39 +02:00
Bertocq
9a396fe634
Fix record_voter_participation and usage on specs
2017-10-07 10:48:24 +02:00
rgarcia
007bcb7ec7
fixes specs
2017-10-04 17:46:25 +02:00
Bertocq
85087b0bea
Check officer value for Poll Voter created from officing panel
2017-10-04 01:09:51 +02:00
Bertocq
b1eb6698be
Add validation expectations for shift date/task/booth/officer combinations
2017-10-04 00:13:10 +02:00
Bertocq
1975099545
Refactor & cleanup let statements on Shift model spec
2017-10-04 00:07:11 +02:00
Bertocq
b893c0bace
Add shift task presence validation expectation
2017-10-03 23:45:13 +02:00
Bertocq
690ebfba01
Check Shift destroy also destroy only associated OfficerAssigments
2017-10-03 13:24:07 +02:00
Bertocq
c624129175
Check Shift creates final/not-final OfficerAssigments correctly
2017-10-03 12:57:40 +02:00
Bertocq
3a17c74f2c
Merge branch 'master' into chore/remove_results
2017-10-03 11:42:57 +02:00
Bertocq
ccb80ce967
Fix recount spec to take into account already existing values and mandatory officer_assigment
2017-10-03 11:40:36 +02:00
Bertocq
6c998768e8
Fix Poll Recount model spec after default amount value added
2017-10-03 00:19:12 +02:00