decabeza
46671fe447
Removes unnecessary pages
2018-11-15 11:52:57 +01:00
Raimond Garcia
1692abc54a
Merge pull request #2374 from wairbut-m2c/upload_documents_feature
...
Upload documents feature
2018-04-05 19:39:12 +02:00
Bertocq
633cc1283b
Fix Date & DateTime parsings to use default timezone
...
Date.new(...) does not take into account the current timezone, while other
parts of the application do. By default always parsing any date with the
default timezone and converting the resulting Time to Date would prevent
this kind of issues
DateTime.parse(...).in_time_zone gives an unexpected result, as the
DateTime.parse(...) will create a DateTime with +0000 time zone and the
`in_time_zone` will modify the DateTime to adjust to the default zone.
Maybe its better explained with an example, using 'Lima' as timezone:
DateTime.parse("2015-01-01")
> Thu, 01 Jan 2015 00:00:00 +0000
DateTime.parse("2015-01-01").in_time_zone
> Wed, 31 Dec 2014 19:00:00 -05 -05:00
And that's not the desired date but the previous day!
2018-04-04 14:21:39 +02:00
decabeza
42d0f471ee
Updates i18n keys and images folder
2018-01-30 19:10:48 +01:00
Vicente Mendoza
410caced3e
test added for changes at documentable's view
2018-01-24 12:48:06 +01:00
Bertocq
28008d64e2
Improve performance swapping keys.each for each_key, plus line lenght comply
2018-01-19 23:44:08 +01:00
BertoCQ
3e316edc40
Merge pull request #2185 from consul/improve_consul_json_spec
...
Improve consul.json request spec
2018-01-18 21:08:54 +01:00
rgarcia
be554a629c
Make current_budget accessible in controller and views
2018-01-15 19:13:45 +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
cdbf0a77e1
Improve consul.json request spec, to avoid maintaining the setting features list up with seeds.rb content
2018-01-07 15:24:46 +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
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
Alberto García
19925de06b
Merge pull request #2170 from consul/design
...
Design improvements
2017-12-14 11:31:31 +01:00
Bertocq
34f07bcc82
Add feature allow_images flag to installation specs
2017-12-13 14:30:43 +01:00
rgarcia
c63c734ec2
fixes specs
2017-12-12 11:04:05 +01:00
Bertocq
516081d109
Describe with a request spec the consul.json install details route
2017-12-04 18:17:10 +01: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
2fa92937d2
Fix all Style/BracesAroundHashParameters rubocop issues and remove them from rubocop_todo list
2017-06-28 14:12:51 +02:00
Bertocq
c4d90691b1
Fix all Layout/SpaceInLambdaLiteral rubocop issues and remove files from rubocop_todo list
2017-06-26 18:05:14 +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
Bertocq
9763931f55
Fix all Layout/SpaceBeforeComma rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
d759aca522
Fix all Rails/TimeZone rubocop issues and remove files from rubocop_todo list
2017-06-25 15:46:46 +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
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
Raimond Garcia
59f42dfa0f
Merge pull request #1579 from bertocq/chore/restore_setting_afterwards_in_specs
...
Cleanup Settings values modified after specs are run
2017-06-08 12:09:24 +02:00
Bertocq
798b646135
Cleanup Settings values modified after specs are run
2017-06-07 20:55:42 +02:00
decabeza
dcffa96d11
removes specs of deleted info pages
2017-06-07 18:53:23 +02:00
decabeza
5e0d5fc8c3
Merge branch 'legislation-module-stable' of https://github.com/medialab-prado/consul into medialab-legislation
2017-05-22 18:43:49 +02:00
Alberto Miedes Garcés
cad66ea85a
Update GraphQL and GraphiQL gem
2017-05-11 22:29:21 +02:00
Alberto Miedes Garcés
5d9054d284
Merge branch 'master' into api-dev-PRs
...
Conflicts:
Gemfile.lock
config/routes.rb
db/dev_seeds.rb
db/schema.rb
2017-05-11 21:59:42 +02:00
Alberto Garcia Cabeza
45af9ce5aa
adds budget investments numbers and chart on admin stats
2017-04-25 16:46:20 +02:00
Alberto Garcia Cabeza
533a7492a1
changes more information to more info
2017-04-04 18:01:30 +02:00
Alberto Garcia Cabeza
b9a44297aa
updates pages specs
2017-03-30 13:53:01 +02:00
Amaia Castro
b298fb7316
Show annotation context in annotation page
...
Only works with quotes within the same html node for now
2017-02-10 15:35:42 +01:00
Amaia Castro
3009706b0d
Don’t allow comments on questions for unverified users and when the phase is closed
2017-02-08 18:19:10 +01:00
Alberto Miedes Garcés
70a1dbde94
Fix bug when parsing query variables sent by the GraphiQL desktop client
2017-01-31 13:52:25 +01:00
Alberto Miedes Garcés
5b7cbccd19
Merge branch 'master' into api-dev
2017-01-26 12:39:59 +01:00
Amaia Castro
53d13d8524
Create a new comment instead of a new annotation with the same ranges
2017-01-25 16:04:10 +01:00
Fernando Blat
f1be212eeb
Fix and complete controller specs
2017-01-14 16:56:55 +01:00
Amaia Castro
49e66a431c
Check phase dates and that draft version is not final before creating annotations
2017-01-13 19:11:05 +01:00
Amaia Castro
a2a61341fe
Merge branch 'master' into legislation-module-stable
2017-01-11 22:54:41 +01:00
Amaia Castro
f505d6fec7
Check if debate phase is open to create answers
2016-12-28 22:02:08 +01:00
kikito
84418bd671
Fixes issue in has_orders concern
2016-12-25 22:58:21 +01:00
kikito
03ef20bfde
Merges orders_helper functionality inside has_orders concern
...
Both these objects where using/setting a variable called valid_orders.
As a results, some specs where becoming flacky
(features/budgets/investments_spec.rb, balloting phase). By putting
them together, there is no `valid_orders` variable any more (everything
is @valid_orders) and the flackyness is gone.
2016-12-24 14:42:46 +01:00
Alberto Miedes Garcés
6013f84945
Handle multiple kind of requests in GraphQL controller
...
* Added support for GET requests
* Added support for application/graphql content-type for POST requests
* Handling query string parsing errors in controller
* Wrote specs for all this
2016-12-03 13:36:14 +01:00
Alberto Miedes Garcés
a516262724
Example graphql_controller test
2016-11-30 13:43:50 +01:00
Alberto Miedes Garcés
0eae2fada6
Refactor GraphQL controller specs
2016-11-27 13:50:01 +01:00
Alberto Miedes Garcés
9ed51cf477
Useless commit
2016-11-25 01:02:05 +01:00