taitus
c1f3a4ad3b
Add remote translations to debates and proposals
...
Include RemotelyTranslatable concern on commentable actions to detect
remote translations on index and show controllers actions.
2019-06-27 09:21:19 +02:00
Senén Rodero Rodríguez
264b3f0f82
Simpler calls to *_translatable shared specs
...
Enable translations interface setting inside shared specs when needed.
Co-Authored-By: javierm <javim@elretirao.net >
2019-06-27 09:20:25 +02:00
Senén Rodero Rodríguez
7e3f0b5c18
Add translation interface feature setting
...
Allow to enable/disable translation interface at frontend
2019-06-27 09:20:25 +02:00
Senén Rodero Rodríguez
3176be43d9
Rename "translatable" shared example to "edit_translatable"
...
Also rename all specs calls
2019-06-27 09:20:25 +02:00
Senén Rodero Rodríguez
1bcbcf4975
Add "new_translatable" shared example to debates feature specs
2019-06-27 09:20:25 +02:00
Senén Rodero Rodríguez
6a6080e6b7
Fix debates suggest feature
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
51cda51155
Add debates translation interface
...
Also fix broken spec after removing translatable attributes from
strong_parameters definition. Now we need to send these attributes
as nested translations attributes.
Use activerecord.yml title attribute label so form helper could load it
from default location.
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
f77e7df33e
Fix debate specs
...
After adding debate translatable fields to forms, they will be generated with nested translations names and ids so we can no longer
use standard id locator.
Using input label text to fill in fields works with both types of forms.
2019-06-27 09:19:36 +02:00
Javi Martín
307cf24846
Use describe on feature tests
...
The `type: :feature` is automatically detected by RSpec because these
tests are inside the `spec/features` folder. Using `feature` re-adds a
`type: :feature` to these files, which will result in a conflict when we
upgrade to Rails 5.1's system tests.
Because of this change, we also need to change `background` to `before`
or else these tests will fail.
2019-05-28 16:36:54 +02:00
Julian Herrero
c82b2a975a
Add new settings tab for participation processes
...
- Rename setting keys
- New tab por participation processes
- Hide these settings from features tab
2019-03-19 19:45:32 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
decabeza
4e4804e180
Replace total votes to cached_votes_score on debates
...
This show votes_score as result of votes_up minus votes_down
2019-02-12 18:42:35 +01:00
voodoorai2000
7917cea676
Change to_not for not_to
...
Eventhough some of us sentimentals still like the syntax `to_not` the current trend is to move to the new syntax `not_to`.
In this commit we are updating the references of expectations that used `to_not` to `not_to`.
2018-12-15 12:33:28 +01:00
Claire Zuliani
3b5319508c
Update debates_spec.rb
...
If I trust https://github.com/consul/consul/blob/master/db/seeds.rb#L85 , debates recommendations Setting title is `recommendations_on_debates`, and not `recommendations_for_debates`.
2018-11-10 13:48:53 +01:00
decabeza
c8f49644ce
Fixes english translations
2018-11-08 12:07:13 +01:00
Angel Perez
463c753880
Recommendations are automatically disabled if dismissed by user
2018-07-15 21:28:58 -04:00
Angel Perez
0b7967440f
Recommendations for users are enabled by default
2018-07-15 21:28:58 -04:00
Angel Perez
0ac6033ff6
Refactor recommendations specs to improve DRYness
2018-07-15 21:28:57 -04:00
Angel Perez
251441e109
Users can now hide recommendations
2018-07-15 21:28:57 -04:00
Angel Perez
4275069a1e
Include tests for recommendations feature
2018-07-15 21:28:57 -04:00
decabeza
36a5ff39b8
Adds recommendations on debates index
2018-07-15 21:28:57 -04:00
decabeza
0bf31bde6c
Updates all active to is-active classes
2018-06-06 12:02:13 +02:00
decabeza
c4dc7bc831
Adds view mode on debates
2018-04-02 17:28:39 +02:00
Angel Perez
ea21fe859b
Format dates with .strftime('%d/%m/%Y') when filling datepickers
...
Advanced search scenarios for Budget::Investments, Debates and
Proposals need proper date formatting as they behave unexpectedly
when APIs such as `7.days.ago` are used
2018-03-27 14:47:49 -04:00
iagirre
ffd6bdb3d7
first changed for click_link so that the test can wait the capybara default time.
2018-03-04 22:58:35 +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
97c5490995
Fix unnecesary spacing
2018-01-07 01:58:45 +01:00
Bertocq
f6aed3f9f1
Enable RSpec/ExpectActual cop and fix all issues
...
Always use a variable and not a literal as `expect` argument
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual
2018-01-07 01:55:38 +01:00
Bertocq
7f14544f71
Enable Capybara/CurrentPathExpectation cop & fix issues
...
Read cop description http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation to better understand reasons behind enforcing this rule
On some cases the `only_path: true` was needed as argument of `have_current_path` matcher to avoid comparing the url parameters and just checking the path.
2018-01-06 23:31:41 +01:00
María Checa
4192860a73
Added and improved related content tests
2017-12-18 23:56:44 +01:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
Bertocq
ce0a7f6fad
Rubocop autocorrections
2017-10-17 22:00:00 +02:00
Senén Rodero Rodríguez
92c774cdeb
Merge with master
2017-09-28 13:36:20 +02:00
Bertocq
ca35c8b85c
Fix Style/NestedParenthesizedCalls rubocop issues
2017-09-25 22:47:59 +02:00
Bertocq
22822aa173
Fix Style/RedundantParentheses rubocop issues
2017-09-25 22:44:58 +02:00
taitus
6e2063310f
Add empty recommended messages text.
2017-08-04 13:27:03 +02:00
taitus
edbbe6174b
Refactor specs because now recommendations only return results asociated to user interests
2017-08-03 00:23:06 +02:00
taitus
52e3610876
Minimum required by consul core. Remove comments. Fix texts. Decrease size of methods.
2017-08-02 00:15:03 +02:00
taitus
33e13dbfd0
Add missing feature and model specs on proposal and debates.
2017-08-01 18:00:02 +02:00
Senén Rodero Rodríguez
bb4e4dc084
Fix almost all broken specs
2017-08-01 16:28:01 +02:00
Bertocq
69f4e1c683
Fix all rubocop Metrics/LineLength issues (140+)
2017-07-10 13:22:49 +02:00
Bertocq
c9bc028524
Remove all unnecesary extra spacing and Layout/ExtraSpacing list from rubocop file
2017-06-28 14:12:51 +02:00
Bertocq
775da2d581
Remove all Layout/EmptyLines issues on code and file list from rubocop_todo
2017-06-28 14:12:51 +02:00
Bertocq
6529e37ae8
Fix all rubocop Rails/PluralizationGrammar issues and remove the file list form rubocop_todo file
2017-06-25 15:46:46 +02:00
Bertocq
798b646135
Cleanup Settings values modified after specs are run
2017-06-07 20:55:42 +02:00
Amaia Castro
5ee2c9efa0
Add telegram to footer and to social share button
2017-04-05 13:07:08 +02:00
Juanjo Bazán
652aff4e19
adds validation for custom dates in advanced search
...
avoids error 500 on invalid dates
2017-03-27 12:18:45 +02:00
Juanjo Bazán
a771408f4b
Merge pull request #1336 from aspgems/bug_filter_advance_search
...
Fixes values of official_level options for selects in search filters.
2017-01-13 11:00:00 +01:00
Juanma
68b2f6d9c4
Fixes specs.
2017-01-13 07:44:57 +01:00
rgarcia
fd28f6c2b3
adds tags to investment
2017-01-08 11:37:02 +01:00