Commit Graph

107 Commits

Author SHA1 Message Date
Alberto Miedes Garcés
e7f55b10e2 Remove obsolete specs 2017-01-25 13:58:44 +01:00
Alberto Miedes Garcés
e3fca5c49f Remove functionality related to votes demographic info
Since this was giving me too much pain and nobody actually requested
this functionality, I decided to remove it.
2017-01-25 13:37:29 +01:00
Alberto Miedes Garcés
18fb1485eb No need to specify the resolve type for GraphQL::Schema
This was needed back in the 0.18.11 version but not anymore after the
update to 1.3.0
2017-01-16 11:28:28 +01:00
Alberto Miedes Garcés
cb0a477d88 Fix weird bug caused by pending specs 2017-01-16 11:23:48 +01:00
Alberto Miedes Garcés
7a9373942a Testing GraphQL 1.3.0 in Travis 2017-01-12 20:11:47 +01:00
Alberto Miedes Garcés
d1f14ffb93 Simplify the way GraphQL 'resolve' is used 2017-01-12 19:51:58 +01:00
Alberto Miedes Garcés
60786f17c2 Improved code coverage for GraphQL resolvers specs 2017-01-09 10:14:31 +01:00
Alberto Miedes Garcés
e1b3d468e5 Fix failing spec 2017-01-08 14:27:20 +01:00
Alberto Miedes Garcés
398bc8c211 Split api types creation and query type creation between two different classes 2017-01-08 13:39:50 +01:00
Alberto Miedes Garcés
b9d2bc2801 Wrote specs for QueryType creation 2017-01-08 12:45:48 +01:00
Alberto Miedes Garcés
7027164867 Clean code 2017-01-08 11:37:56 +01:00
Alberto Miedes Garcés
ed6ba384dd Wrote specs for GraphQL root resolvers 2017-01-08 11:37:15 +01:00
Alberto Miedes Garcés
0b302c2afc Move code from GraphQL initializer into GraphQL::TypeCreator 2017-01-07 23:04:30 +01:00
Alberto Miedes Garcés
3c73f35416 Removed useless code 2017-01-07 22:20:28 +01:00
Alberto Miedes Garcés
98db33f623 Track email digests 2017-01-05 23:31:11 +01:00
Alberto Miedes Garcés
9cfb3eb52e Write specs for GraphQL::AssociationResolver 2017-01-03 18:30:53 +01:00
Alberto Miedes Garcés
0b4004042f Expose age_range instead of date_of_birth for Voter/User class 2017-01-02 14:12:37 +01:00
Alberto Miedes Garcés
7dc4d80e7b Read GraphQL field types from file instead of from database 2017-01-01 19:36:07 +01:00
Alberto Miedes Garcés
2741dcf03c Temporary remove organizations from API 2016-12-26 20:45:46 +01:00
Alberto Miedes Garcés
10eedebcb2 Refactor GraphQL specs to use public_author instead of author 2016-12-13 14:26:00 +01:00
Alberto Miedes Garcés
fdea4ad6ac Merge branch 'master' into api-dev 2016-12-03 13:53:13 +01:00
Alberto Miedes Garcés
a0f1976c1a Refactor GraphQL::TypeCreator specs 2016-12-02 21:53:36 +01:00
Alberto Miedes Garcés
c973195267 Refactor ConsulSchema specs 2016-12-02 21:30:13 +01:00
Alberto Miedes Garcés
aef20aadf7 Refactor specs for TypeCreator and ConsulSchema 2016-11-30 13:44:31 +01:00
kikito
2a2179d0f3 Merge branch 'master' into budget 2016-11-28 11:41:49 +01:00
kikito
f0b8cfd4a2 Time.now -> Time.current 2016-11-23 19:19:19 +01:00
Alberto Miedes Garcés
027bdf3f16 DRYed specs 2016-11-23 00:16:01 +01:00
Alberto Miedes Garcés
13273f4bc2 DRYed specs 2016-11-22 23:49:05 +01:00
Alberto Miedes Garcés
7bb1778124 Finished tests for GraphQL queries for single resources 2016-11-18 19:57:07 +01:00
Alberto Miedes Garcés
8b30aaa6d4 Merge branch 'master' into api-dev 2016-11-18 16:40:33 +01:00
Alberto Miedes Garcés
860704d908 Rewrote tests to tackle more specific stuff 2016-11-18 16:27:15 +01:00
Alberto Miedes Garcés
4e2a003931 Half-made tests for ConsulSchema 2016-11-17 17:54:02 +01:00
Alberto Miedes Garcés
96bfbbf9af Half-made tests for GraphQL::TypeCreator 2016-11-17 17:48:03 +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
Alberto Miedes Garcés
b10b701319 Started GraphQL::TypeCreator testing 2016-11-14 16:08:56 +01:00
kikito
b4c7675c31 imports votes 2016-09-07 15:58:39 +02:00
kikito
c1bf89a09e adds more functionality to spending proposal importer 2016-09-07 13:02:26 +02:00
kikito
b8dffc6137 refactor some tests to their own test in importer 2016-09-07 12:01:04 +02:00
kikito
bdfd326907 implements some parts of the spending proposals importer 2016-09-07 11:53:24 +02:00
rgarcia
5bd7fdb263 fixes specs 2016-08-03 20:05:08 +02:00
rgarcia
63274dfe08 marks notifications as emailed after rake 2016-08-03 19:48:43 +02:00
rgarcia
0faff2f01c adds specs 2016-08-03 19:33:43 +02:00
rgarcia
6e800c5120 adds email digest for proposal notifications 2016-06-14 17:53:36 +02:00
kikito
4f724ef3bf Modifies census_api to parse genre and dob 2016-04-12 18:18:25 +02:00
rgarcia
dbc19090ed cleans up 2016-01-26 12:13:29 +01:00
kikito
57e72206d2 makes the census api try several variants before failing a verification 2015-12-21 17:07:48 +01:00
Juanjo Bazán
5203f5c983 adds specs for SOAP calls 2015-10-15 17:05:34 +02:00
Juanjo Bazán
855763267f adds spec for lib/manager_authenticator 2015-10-15 15:59:14 +02:00
kikito
d71a404661 Adds more methods to ActsAsTaggableOn 2015-09-17 16:53:21 +02:00
kikito
fedefa215f Increases/decreases custom counters when taggings are created/destroyed 2015-09-17 12:50:14 +02:00