Angel Perez
0611e0f4ea
Validate presence of 'poll_id' attribute on Poll::Question model
...
Fixes #1831
On branch aperez-validate-poll-question-is-selected
Changes to be committed:
modified: app/models/poll/question.rb
modified: spec/models/poll/question_spec.rb
modified: spec/features/admin/poll/polls_spec.rb
2017-09-14 11:52:19 -04:00
BertoCQ
fa8b9a69a3
Merge branch 'master' into polls-persist-officer-data
2017-09-11 00:11:36 +02:00
BertoCQ
1ced54f0e3
Merge pull request #1835 from consul/1677-poll_questions_documents
...
Poll questions document and video
2017-09-11 00:08:31 +02:00
BertoCQ
dd02c83fa3
Merge branch 'master' into poll-shifts-search-officers
2017-09-11 00:07:12 +02:00
rgarcia
4d1f61a87e
adds specs
2017-09-08 22:00:50 +02:00
rgarcia
47564a91a0
persist a shift's officer data
2017-09-08 20:08:45 +02:00
rgarcia
b1abb9dbb3
adds specs
2017-09-07 22:39:03 +02:00
María Checa
fb5211f251
Fixed test
2017-09-07 17:51:55 +02:00
María Checa
27ac4c5815
Added poll questions documents and video specs
...
New tests to ensure video URL is shown in the admin preview. Also that the video URL and documents are correctly saved after creating a question.
2017-09-07 17:19:07 +02:00
Raimond Garcia
d01b1476fd
Merge pull request #1833 from rockandror/improve-community
...
Improve community
2017-09-07 11:11:55 +02:00
María Checa
9f2522c106
Merge branch 'master' into 1677-poll_questions_documents
2017-09-06 18:28:31 +02:00
María Checa
288cedc4c4
Poll questions documents tests added
2017-09-06 18:25:41 +02:00
decabeza
1de763a737
removes deprecated specs
2017-09-06 18:07:46 +02:00
taitus
748a54934c
Add missing specs on comments from topics
2017-09-06 15:01:39 +02:00
taitus
79d4a82bfa
Fix specs
2017-09-06 14:16:03 +02:00
taitus
9b6b57a24c
Remove all white spaces
2017-09-06 14:12:32 +02:00
taitus
64774b0d2d
Refactor topics controller. Add Common abilities. Add destroy action.
2017-09-06 13:30:12 +02:00
taitus
5ea16976f7
Refactor communities controller. Add missing specs on topics order.
2017-09-06 12:34:38 +02:00
Raimond Garcia
6f9d48f0eb
Merge branch 'master' into community
2017-09-05 15:40:03 +02:00
Raimond Garcia
eb4528eaa0
Merge branch 'master' into poll-shifts
2017-09-05 14:45:31 +02:00
taitus
da7b53acf4
Refactor spec.
2017-09-05 13:30:45 +02:00
taitus
56eb30cc87
Add associate community rake task.
2017-09-05 12:55:12 +02:00
taitus
9c7cd7d864
Fix features communities spec
2017-09-05 12:55:12 +02:00
taitus
3516c651c1
Fix community particpants spec
2017-09-05 12:55:12 +02:00
taitus
5d22558c2b
Fix specs
2017-09-05 12:54:32 +02:00
taitus
e1a7f9c58c
Add community to Global Settings
2017-09-05 12:54:32 +02:00
taitus
dcaa10147a
Relocate User model spec to Community model spec.
2017-09-05 12:54:32 +02:00
taitus
8f7356f7a4
Add missing spec. Improve readability on topics files
2017-09-05 12:54:32 +02:00
taitus
895c942a39
Add community to investments
2017-09-05 12:52:45 +02:00
taitus
4539c5fa00
Refactor and tests.
2017-09-05 12:52:14 +02:00
Raimond Garcia
ee3b3f2c85
Merge pull request #1809 from rockandror/documentable-ajax
...
[WIP] Documentable
2017-09-05 11:22:46 +02:00
decabeza
dd0452ece6
updates texts on specs
2017-09-01 13:18:56 +02:00
Senén Rodero Rodríguez
796e6f9ce1
Code adaptation to work with nested documents and plain documents.
2017-08-25 18:34:55 +02:00
Senén Rodero Rodríguez
d67ad6d6d0
Fix overlapping error on Travis with make_visible option on attach_field spec helper
2017-08-25 18:34:54 +02:00
Senén Rodero Rodríguez
1be9d40fff
Fix capybara error when attaching a file to hidden file input.
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
0fbffdc73e
Fix abilities definition and related specs
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
8e91bbe5b5
Fix document validations specs
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
4081dded5f
Add nested documents to new budgetinvestments.
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
d34216b5a7
Refactor nested documentable spec
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
0db49fda4e
Fix translations error and refactor nested documentable shared example spec.
2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
cc89907bff
Add nested documents to proposal form.
2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
593da5e76b
Show maximum number of document reached notice only when current user has document creations permissions.
2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
c438e510c0
Add rel attribute with nofollow value.
2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
92e8468e89
Use documentables helper method within specs and document model.
2017-08-25 18:34:50 +02:00
Senén Rodero Rodríguez
3a7c9d9f83
Add documentables helper
2017-08-25 18:34:49 +02:00
Senén Rodero Rodríguez
38d4d59241
Add arguments to documentable concern to make it configurable for any recipient model.
2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
6b61cbe35c
Set maximum number of documents on proposal and budget investments. Show alert on documents tab when maximum reached. Hide upload button when maximum reached.
2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
462931845b
Fix back link on document new page.
2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
586776efd8
Add documentable to proposal model.
2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
a2130689ed
Create documentable concern and add it to budget investment model. Create documents controller, documents helper, routes, translations and specs
2017-08-25 17:27:37 +02:00