Javier Martín
157cd001d5
Add spec to expose a bug finding manager logged in
...
I've moved the method to the User model in order to make it easier to
test. I'm not sure where it belongs, though.
There was already a failing spec in `spec/features/management_spec.rb`,
but it passed if run standalone because it only failed if previous tests
had already created nine users or more.
2018-07-28 22:03:33 +02:00
rgarcia
f670019325
Deal gracefully with recommendations of hidden proposals
...
We were seeing an exceptions in the home page when displaying
recommendations. This was due to trying to load tags of hidden proposals
With this commit we are skipping proposals that that have been hidden,
which will hopefully solve this exception
2018-07-10 17:47:28 +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
1441de5107
Enable RSpec/HookArgument cop and fix issues
...
To be consistent about before/after arguments, as `:each` or `:example`
are same and default scopes, best not to send an argument in those
scenarios.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument
2018-01-07 02:07:19 +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
taitus
9b6b57a24c
Remove all white spaces
2017-09-06 14:12:32 +02:00
taitus
dcaa10147a
Relocate User model spec to Community model spec.
2017-09-05 12:54:32 +02:00
taitus
4539c5fa00
Refactor and tests.
2017-09-05 12:52:14 +02:00
Bertocq
7d406cae76
Rubocop autocorrections
2017-07-25 13:01:03 +02:00
Senén Rodero Rodríguez
4b2310c135
Move and refactor method from follow to user model to get user interests. Add specification to check the discard of duplicate interests.
2017-07-07 15:18:34 +02:00
Bertocq
2fa92937d2
Fix all Style/BracesAroundHashParameters rubocop issues and remove them from rubocop_todo list
2017-06-28 14:12:51 +02:00
Bertocq
f6fe9cc7d2
Fix all Layout/SpaceAroundOperators rubocop issues and remove file list from rubocop_todo list
2017-06-26 18:04:20 +02:00
Juanjo Bazán
315c57929a
allows managers to create users without email
...
allows managers to create users without email
hides email preferences from account page for email-less users
prevents email delivery to users with no email
adds spec for user creation from management
adds specs for user's email requirement
adds spec for no deliveries if no email
2017-06-19 13:02:48 +02:00
Juanjo Bazán
dee1b64eb6
fixes typo
2017-02-10 14:48:49 +01:00
Juanjo Bazán
35078848c3
adds methods to take votes from other user (generic & erased)
2017-02-09 20:09:06 +01:00
Juanjo Bazán
ae5ba97f1e
adds erased scope to User
2017-02-09 18:43:50 +01:00
Juanjo Bazán
0b2454fb97
adds User#age
2017-01-25 14:17:49 +01:00
Juanjo Bazán
454ae678e6
adds spec for user#poll_officer?
2016-12-27 18:51:38 +01:00
rgarcia
39fd031780
adds specs
2016-12-12 19:11:00 +01:00
kikito
f0b8cfd4a2
Time.now -> Time.current
2016-11-23 19:19:19 +01:00
rgarcia
9d9bf488fc
does not create notifications for blocked or erased users
2016-08-02 20:52:20 +02:00
Andrés Pereira
c5e6735caa
Change madrid.es to consul.dev - closes #1169
2016-07-14 16:28:16 +02:00
rgarcia
9e910a834b
Displays badge for official positions
2016-06-20 21:37:25 +02:00
rgarcia
98040e191e
fixes conflicts with fork
2016-06-20 21:33:34 +02:00
rgarcia
28d12fe55b
removes sending individual proposal notifications via email
2016-06-15 10:43:02 +02:00
rgarcia
fd67294075
adds option to receive direct messages
2016-06-14 18:20:36 +02:00
rgarcia
9f19a5d143
adds option to receive email digest
2016-06-14 18:08:27 +02:00
rgarcia
ad697cd2c1
adds preference to receive proposal notifications
2016-06-06 12:55:33 +02:00
Juanjo Bazán
d1e50d70d6
managers can login to /management
2016-05-10 19:10:02 +02:00
kikito
d577a2b82e
add spec for user identity erasure
2016-04-19 13:33:52 +02:00
rgarcia
08db8a6b17
fixes specs
2016-04-18 20:08:05 +02:00
Raimond Garcia
9aa716ddc1
Merge pull request #930 from morenohe/phone_erase#837
...
phone_erase#837
2016-03-02 13:55:44 +01:00
morenohe
567420ae35
phone_erase
2016-02-24 10:33:51 +00:00
Juanjo Bazán
009733a43b
adds Valuator
2016-02-17 17:46:59 +01:00
kikito
62ac864d90
removes deprecated user specs
...
Conflicts:
spec/models/user_spec.rb
2016-01-26 18:14:47 +01:00
Josep Jaume Rey Peroy
5de3d700e4
Simplify Settings API
2016-01-18 12:43:34 +01:00
Julian Herrero
2049eb0455
rename column name to newsletter
2015-12-24 12:53:03 +01:00
Julian Herrero
e7314ac380
add option to subscribe/unsubscribe to website newsletter
2015-12-16 16:14:35 +01:00
Jakub
e4b31cfe29
Move automatic official_level assignment to the controller.
2015-12-01 23:18:23 +01:00
Jakub
ea9a2b3be6
Better names for the official email methods
2015-11-30 21:52:48 +01:00
Jakub
da490a4661
Officials level 1 is auto-assigned on email confirmation. Settings option is now optional. Also working on subdomains
2015-11-30 20:48:12 +01:00
Jakub
a1e4c1526b
Spec: test email_domain_for_officials
2015-11-29 14:23:50 +01:00
kikito
6c5d1faa90
Uses the new field, erased_at, for erased users
2015-10-21 14:28:21 +02:00
rgarcia
aface2c89e
tests that user has been hidden
2015-10-20 13:07:47 +02:00
kikito
9267948a99
Nullifies instead of emptying user
2015-10-19 20:13:42 +02:00
kikito
1511f811fd
implements first version of user.erase
2015-10-16 14:25:05 +02:00
kikito
d351daedd4
Adds document_number-related constraints to User
2015-10-08 15:19:11 +02:00
rgarcia
9ced80fe8c
refactors verification specs [ #500 ]
2015-09-24 17:21:09 +02:00
Juanjo Bazán
1e96bba262
refactors account's email config
2015-09-14 14:09:24 +02:00