Bertocq
4f6597b200
Enable RSpec/RepeatedDescription cop & fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedDescription
2018-01-07 17:45:34 +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
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
fa017b664f
Enables RSpec/EmptyLineAfterFinalLet cop & fixes all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterFinalLet
2018-01-07 00:49:37 +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
rgarcia
0152b6301c
adds specs
2017-12-19 20:36:10 +01:00
Angel Perez
63317714c3
Proposal recommendations won't include archived or already supported proposals
2017-12-15 22:40:24 -04: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
BertoCQ
87c99018e7
Merge branch 'master' into user-recomendations
2017-09-14 23:45:56 +02:00
Angel Perez
2181a65bc2
Allow only YouTube/Vimeo URLs on 'video_url' attribute
...
Fixes #1841
On branch aperez-valid-video-url
Changes to be committed:
modified: app/models/proposal.rb
modified: spec/factories.rb
modified: spec/models/proposal_spec.rb
Allow only YouTube/Vimeo URLs on 'video_url' attribute
Fixes #1841
On branch aperez-valid-video-url
Changes to be committed:
modified: app/helpers/embed_videos_helper.rb
modified: app/models/proposal.rb
modified: spec/features/management/proposals_spec.rb
modified: spec/features/proposals_spec.rb
modified: spec/features/tags/proposals_spec.rb
modified: spec/models/proposal_spec.rb
2017-09-13 08:35:59 -04:00
taitus
edbbe6174b
Refactor specs because now recommendations only return results asociated to user interests
2017-08-03 00:23:06 +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
112e0649bf
Add missing proposal model specs to check new users_to_notify method.
2017-07-07 15:18:37 +02:00
Eduardo Martinez Echevarria
a600dcbb36
Replace category factory in tags with a trait
2017-06-23 17:34:55 +02:00
Bertocq
b104765ddc
Rubocop autocorrect Lint/BlockAlignment and remove from rubocop_todo list
2017-06-19 10:45:18 +02:00
kikito
1701111bf5
Merge branch 'api-dev-PRs' of https://github.com/amiedes/consul into amiedes-api-dev-PRs-2
2017-06-13 12:07:28 +02:00
Bertocq
798b646135
Cleanup Settings values modified after specs are run
2017-06-07 20:55:42 +02:00
Alberto Miedes Garcés
4b7cebf686
Improved public_for_api scopes and corresponding specs
2017-01-26 18:29:59 +01:00
Alberto Miedes Garcés
5b7cbccd19
Merge branch 'master' into api-dev
2017-01-26 12:39:59 +01:00
Alberto Miedes Garcés
e7f55b10e2
Remove obsolete specs
2017-01-25 13:58:44 +01:00
Alberto Miedes Garcés
f467bb64c7
Wrote specs for HasPublicAuthor module
2017-01-07 18:00:14 +01:00
Alberto Miedes Garcés
861a723724
Only show public_voter if votable.total_votes are above threshold
2017-01-07 17:22:18 +01:00
Alberto Miedes Garcés
4e019c79d6
Fix typo
2017-01-07 16:55:24 +01:00
kikito
f0b8cfd4a2
Time.now -> Time.current
2016-11-23 19:19:19 +01:00
rgarcia
bb3c4c6399
adds consistency to ruby code style
...
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
rgarcia
fe3451b4ba
fixes specs
2016-10-26 10:31:05 +02:00
Juanjo Bazán
8d48eccfed
adds not_archived scope to proposal
2016-09-13 12:10:31 +02:00
Juanjo Bazán
da03311f99
archived proposals can not accept votes
2016-09-12 18:47:56 +02:00
Juanjo Bazán
acae610995
adds model specs for archived proposal
2016-09-12 18:15:18 +02:00
rgarcia
9d9bf488fc
does not create notifications for blocked or erased users
2016-08-02 20:52:20 +02:00
Juanjo Bazán
d63cf8b392
removes retired proposals from default index
...
adds a sidebar link to retired proposals list
2016-04-23 13:24:15 +02:00
Juanjo Bazán
f36f0ca8c8
adds scope & boolean method for retired proposals
2016-04-23 13:24:15 +02:00
Raimond Garcia
2a4adc2e60
Merge pull request #817 from microweb10/friendly_urls
...
Friendly urls
2016-03-02 17:51:00 +01:00
rgarcia
6fde504e67
displays summary for districts
2016-02-19 18:15:18 +01:00
rgarcia
bbeb02e9a9
orders summary groups alphabetically
2016-02-19 17:55:49 +01:00
rgarcia
6c6773aeb7
fixes specs
2016-02-17 20:14:23 +01:00
Raimond Garcia
9561259800
Merge pull request #901 from consul/popular_links
...
Adds new links on popular section
2016-02-17 16:11:01 +01:00
rgarcia
afc2b5ffb8
makes spec more robust
2016-02-17 15:39:22 +01:00
Alberto Garcia Cabeza
c374e3f560
Fixes specs
2016-02-17 15:22:12 +01:00
Juanjo Bazán
34f72abb15
fixes random spec fail
2016-02-17 13:33:26 +01:00
rgarcia
74b7f92ee1
adds more comprehensive specs
2016-02-16 15:52:59 +01:00
rgarcia
cfb48ef937
cleans up
2016-02-16 15:30:04 +01:00
rgarcia
42fdc52329
adds specs for proposal summary
2016-02-16 13:53:39 +01:00
kikito
986919503a
refactors proposals search
2016-02-03 18:26:48 +01:00
rgarcia
8940defbb8
adds specs
2016-01-25 22:28:46 +01:00
Juanjo Bazán
0a5efb8025
fixes build
2016-01-21 18:03:00 +01:00
Juanjo Bazán
09b53a3d0a
Merge pull request #822 from consul/advanced-search
...
Advanced search
2016-01-18 15:17:17 +01:00
Josep Jaume Rey Peroy
5de3d700e4
Simplify Settings API
2016-01-18 12:43:34 +01:00