Ben Woosley
0a6c133d25
Tidy up the tests
...
* Use assert_nil where appropriate
* Lead with the expected value in collection_serializer_test.rb, etc
so that expected/actual in test failure messages are not reversed
2016-01-07 11:21:19 -08:00
Benjamin Fleischer
419faf03b9
Favor ActiveSupport::TestCase over Minitest::Test
...
- Better minitest 4/5 support
- Better DSL
- Already available with no changes
- Consistent interface
2015-12-22 10:35:51 -06:00
Benjamin Fleischer
e5a109865c
Test ArraySerializer less rigorously on Minitest 4
2015-11-08 23:12:56 -06:00
Benjamin Fleischer
2c8b9b796d
Rename ArraySerializer to CollectionSerializer for clarity
2015-10-21 16:53:26 -05:00
Lucas Hosseini
503bfe9598
Move meta/meta_key handling inside adapter.
2015-10-05 19:06:50 +02:00
Benjamin Fleischer
228cc1c92a
Rubocop: Consistent spacing
2015-09-03 20:51:40 -05:00
Benjamin Fleischer
bdfe13c527
Style/StringLiterals single quote all the things
2015-09-03 20:50:45 -05:00
Benjamin Fleischer
dc4ee94fea
Add ArraySerializer#object like Serializer
2015-08-24 13:51:46 -05:00
vyrak bunleang
1b09d0ec42
array serializer uses root option for json_key if available
2015-07-16 15:34:19 -06:00
Jiajia Wang
91ffec41af
Add test for ArraySerializer json_key method
...
test json key when resource is empty
2015-07-16 11:11:14 +10:00
groyoh
a794a06fa5
Fixed #911
2015-05-17 22:47:44 +02:00
Attila Domokos
bd06647b31
Adding a test to cover 'meta' and 'meta_key' attr_readers
2015-04-30 22:17:19 -05:00
Alexandre de Oliveira
bcd3844e58
Stores passed in options in array serializers
...
This is supported in single serializers. This adds support for passing
options from array serializers to each serializer in it.
2015-03-11 16:14:09 -03:00
Guillermo Iguaran
557b56a50e
Refactor adapters to implement support for array serialization
2014-10-15 17:35:50 -05:00
Tema Bolshakov
3dd4928279
* Do not ingerit array serializer from Serializer
...
* Tests for ArraySerializer
2014-08-29 10:58:14 +04:00