active_model_serializers 0.9.0.alpha1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +132 -15
  3. data/lib/action_controller/serialization.rb +5 -0
  4. data/lib/action_controller/serialization_test_case.rb +79 -0
  5. data/lib/active_model/array_serializer.rb +15 -8
  6. data/lib/active_model/default_serializer.rb +12 -2
  7. data/lib/active_model/serializable.rb +21 -6
  8. data/lib/active_model/serializer.rb +84 -9
  9. data/lib/active_model/serializer/associations.rb +38 -11
  10. data/lib/active_model/serializer/generators/serializer/serializer_generator.rb +1 -1
  11. data/lib/active_model/serializer/version.rb +1 -1
  12. data/lib/active_model_serializers.rb +6 -2
  13. data/test/fixtures/poro.rb +11 -0
  14. data/test/integration/action_controller/serialization_test.rb +53 -0
  15. data/test/integration/action_controller/serialization_test_case_test.rb +61 -0
  16. data/test/integration/active_record/active_record_test.rb +1 -1
  17. data/test/integration/generators/scaffold_controller_generator_test.rb +0 -3
  18. data/test/test_helper.rb +4 -1
  19. data/test/unit/active_model/array_serializer/except_test.rb +18 -0
  20. data/test/unit/active_model/array_serializer/key_format_test.rb +18 -0
  21. data/test/unit/active_model/array_serializer/meta_test.rb +1 -1
  22. data/test/unit/active_model/array_serializer/only_test.rb +18 -0
  23. data/test/unit/active_model/array_serializer/root_test.rb +2 -2
  24. data/test/unit/active_model/array_serializer/scope_test.rb +1 -1
  25. data/test/unit/active_model/array_serializer/serialization_test.rb +120 -4
  26. data/test/unit/active_model/default_serializer_test.rb +1 -1
  27. data/test/unit/active_model/serializer/associations/build_serializer_test.rb +1 -1
  28. data/test/unit/active_model/serializer/associations_test.rb +1 -1
  29. data/test/unit/active_model/serializer/attributes_test.rb +1 -1
  30. data/test/unit/active_model/serializer/config_test.rb +7 -5
  31. data/test/unit/active_model/serializer/filter_test.rb +22 -2
  32. data/test/unit/active_model/serializer/has_many_test.rb +61 -4
  33. data/test/unit/active_model/serializer/has_one_test.rb +59 -3
  34. data/test/unit/active_model/serializer/key_format_test.rb +25 -0
  35. data/test/unit/active_model/serializer/meta_test.rb +1 -1
  36. data/test/unit/active_model/serializer/options_test.rb +15 -0
  37. data/test/unit/active_model/serializer/root_test.rb +2 -2
  38. data/test/unit/active_model/serializer/scope_test.rb +3 -3
  39. metadata +36 -27
  40. data/test/coverage_setup.rb +0 -15
  41. data/test/tmp/app/serializers/account_serializer.rb +0 -3
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class DefaultSerializer
5
- class Test < ActiveModel::TestCase
5
+ class Test < Minitest::Test
6
6
  def test_serialize_objects
7
7
  assert_equal(nil, DefaultSerializer.new(nil).serializable_object)
8
8
  assert_equal(1, DefaultSerializer.new(1).serializable_object)
@@ -3,7 +3,7 @@ require 'test_helper'
3
3
  module ActiveModel
4
4
  class Serializer
5
5
  class Association
6
- class BuildSerializerTest < ActiveModel::TestCase
6
+ class BuildSerializerTest < Minitest::Test
7
7
  def setup
8
8
  @association = Association::HasOne.new('post', serializer: PostSerializer)
9
9
  @post = Post.new({ title: 'Title 1', body: 'Body 1', date: '1/1/2000' })
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class AssociationsTest < ActiveModel::TestCase
5
+ class AssociationsTest < Minitest::Test
6
6
  def test_associations_inheritance
7
7
  inherited_serializer_klass = Class.new(PostSerializer) do
8
8
  has_many :users
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class AttributesTest < ActiveModel::TestCase
5
+ class AttributesTest < Minitest::Test
6
6
  def setup
7
7
  @profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
8
8
  @profile_serializer = ProfileSerializer.new(@profile)
@@ -3,7 +3,7 @@ require 'test_helper'
3
3
  module ActiveModel
4
4
  class Serializer
5
5
  class Config
6
- class Test < ActiveModel::TestCase
6
+ class Test < Minitest::Test
7
7
  def test_config_const_is_an_instance_of_config
8
8
  assert_kind_of Config, CONFIG
9
9
  end
@@ -30,9 +30,9 @@ module ActiveModel
30
30
  end
31
31
  end
32
32
 
33
- class ConfigTest < ActiveModel::TestCase
33
+ class ConfigTest < Minitest::Test
34
34
  def test_setup
35
- ActiveModel::Serializer.setup do |config|
35
+ Serializer.setup do |config|
36
36
  config.a = 'v1'
37
37
  config.b = 'v2'
38
38
  end
@@ -44,7 +44,7 @@ module ActiveModel
44
44
  end
45
45
 
46
46
  def test_config_accessors
47
- ActiveModel::Serializer.setup do |config|
47
+ Serializer.setup do |config|
48
48
  config.foo = 'v1'
49
49
  config.bar = 'v2'
50
50
  end
@@ -63,10 +63,11 @@ module ActiveModel
63
63
  end
64
64
  end
65
65
 
66
- class ApplyConfigTest < ActiveModel::TestCase
66
+ class ApplyConfigTest < Minitest::Test
67
67
  def test_apply_config_to_associations
68
68
  CONFIG.embed = :ids
69
69
  CONFIG.embed_in_root = true
70
+ CONFIG.key_format = :lower_camel
70
71
 
71
72
  association = PostSerializer._associations[:comments]
72
73
  old_association = association.dup
@@ -76,6 +77,7 @@ module ActiveModel
76
77
  assert association.embed_ids?
77
78
  assert !association.embed_objects?
78
79
  assert association.embed_in_root
80
+ assert_equal :lower_camel, association.key_format
79
81
  ensure
80
82
  PostSerializer._associations[:comments] = old_association
81
83
  CONFIG.clear
@@ -2,7 +2,27 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class FilterAttributesTest < ActiveModel::TestCase
5
+ class FilterOptionsTest < Minitest::Test
6
+ def setup
7
+ @profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
8
+ end
9
+
10
+ def test_only_option
11
+ @profile_serializer = ProfileSerializer.new(@profile, only: :name)
12
+ assert_equal({
13
+ 'profile' => { name: 'Name 1' }
14
+ }, @profile_serializer.as_json)
15
+ end
16
+
17
+ def test_except_option
18
+ @profile_serializer = ProfileSerializer.new(@profile, except: :comments)
19
+ assert_equal({
20
+ 'profile' => { name: 'Name 1', description: 'Description 1' }
21
+ }, @profile_serializer.as_json)
22
+ end
23
+ end
24
+
25
+ class FilterAttributesTest < Minitest::Test
6
26
  def setup
7
27
  @profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
8
28
  @profile_serializer = ProfileSerializer.new(@profile)
@@ -20,7 +40,7 @@ module ActiveModel
20
40
  end
21
41
  end
22
42
 
23
- class FilterAssociationsTest < ActiveModel::TestCase
43
+ class FilterAssociationsTest < Minitest::Test
24
44
  def setup
25
45
  @association = PostSerializer._associations[:comments]
26
46
  @old_association = @association.dup
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class HasManyTest < ActiveModel::TestCase
5
+ class HasManyTest < Minitest::Test
6
6
  def setup
7
7
  @association = PostSerializer._associations[:comments]
8
8
  @old_association = @association.dup
@@ -128,7 +128,7 @@ module ActiveModel
128
128
  def test_associations_using_a_given_serializer
129
129
  @association.embed = :ids
130
130
  @association.embed_in_root = true
131
- @association.serializer_class = Class.new(ActiveModel::Serializer) do
131
+ @association.serializer_from_options = Class.new(Serializer) do
132
132
  def content
133
133
  object.read_attribute_for_serialization(:content) + '!'
134
134
  end
@@ -145,7 +145,7 @@ module ActiveModel
145
145
  def test_associations_embedding_ids_using_a_given_array_serializer
146
146
  @association.embed = :ids
147
147
  @association.embed_in_root = true
148
- @association.serializer_class = Class.new(ActiveModel::ArraySerializer) do
148
+ @association.serializer_from_options = Class.new(ArraySerializer) do
149
149
  def serializable_object
150
150
  { my_content: ['fake'] }
151
151
  end
@@ -158,7 +158,7 @@ module ActiveModel
158
158
  end
159
159
 
160
160
  def test_associations_embedding_objects_using_a_given_array_serializer
161
- @association.serializer_class = Class.new(ActiveModel::ArraySerializer) do
161
+ @association.serializer_from_options = Class.new(ArraySerializer) do
162
162
  def serializable_object
163
163
  { my_content: ['fake'] }
164
164
  end
@@ -168,6 +168,63 @@ module ActiveModel
168
168
  'post' => { title: 'Title 1', body: 'Body 1', comments: { my_content: ['fake'] } }
169
169
  }, @post_serializer.as_json)
170
170
  end
171
+
172
+ def test_associations_embedding_ids_including_objects_serialization_with_embed_in_root_key
173
+ @association.embed_in_root = true
174
+ @association.embed_in_root_key = :linked
175
+ @association.embed = :ids
176
+ assert_equal({
177
+ linked: {
178
+ comments: [
179
+ { content: 'C1' },
180
+ { content: 'C2' }
181
+ ]
182
+ },
183
+ 'post' => {
184
+ title: 'Title 1', body: 'Body 1',
185
+ 'comment_ids' => @post.comments.map(&:object_id)
186
+ }
187
+ }, @post_serializer.as_json)
188
+ end
189
+
190
+ def test_associations_embedding_ids_using_embed_namespace_including_object_serialization_with_embed_in_root_key
191
+ @association.embed_in_root = true
192
+ @association.embed_in_root_key = :linked
193
+ @association.embed = :ids
194
+ @association.embed_namespace = :links
195
+ @association.key = :comments
196
+ assert_equal({
197
+ linked: {
198
+ comments: [
199
+ { content: 'C1' },
200
+ { content: 'C2' }
201
+ ]
202
+ },
203
+ 'post' => {
204
+ title: 'Title 1', body: 'Body 1',
205
+ links: {
206
+ comments: @post.comments.map(&:object_id)
207
+ }
208
+ }
209
+ }, @post_serializer.as_json)
210
+ end
211
+
212
+ def test_associations_embedding_objects_using_embed_namespace
213
+ @association.embed = :objects
214
+ @association.embed_namespace = :links
215
+
216
+ assert_equal({
217
+ 'post' => {
218
+ title: 'Title 1', body: 'Body 1',
219
+ links: {
220
+ comments: [
221
+ { content: 'C1' },
222
+ { content: 'C2' }
223
+ ]
224
+ }
225
+ }
226
+ }, @post_serializer.as_json)
227
+ end
171
228
  end
172
229
  end
173
230
  end
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class HasOneTest < ActiveModel::TestCase
5
+ class HasOneTest < Minitest::Test
6
6
  def setup
7
7
  @association = UserSerializer._associations[:profile]
8
8
  @old_association = @association.dup
@@ -106,6 +106,21 @@ module ActiveModel
106
106
  }, @user_serializer.serializable_hash)
107
107
  end
108
108
 
109
+ def test_associations_embedding_nil_ids_including_objects_serialization_using_as_json
110
+ @association.embed = :ids
111
+ @association.embed_in_root = true
112
+ @user.instance_eval do
113
+ def profile
114
+ nil
115
+ end
116
+ end
117
+
118
+ assert_equal({
119
+ 'user' => { name: 'Name 1', email: 'mail@server.com', 'profile_id' => nil },
120
+ 'profiles' => []
121
+ }, @user_serializer.as_json)
122
+ end
123
+
109
124
  def test_associations_embedding_ids_including_objects_serialization_using_as_json
110
125
  @association.embed = :ids
111
126
  @association.embed_in_root = true
@@ -119,7 +134,7 @@ module ActiveModel
119
134
  def test_associations_embedding_ids_using_a_given_serializer
120
135
  @association.embed = :ids
121
136
  @association.embed_in_root = true
122
- @association.serializer_class = Class.new(ActiveModel::Serializer) do
137
+ @association.serializer_from_options = Class.new(Serializer) do
123
138
  def name
124
139
  'fake'
125
140
  end
@@ -134,7 +149,7 @@ module ActiveModel
134
149
  end
135
150
 
136
151
  def test_associations_embedding_objects_using_a_given_serializer
137
- @association.serializer_class = Class.new(ActiveModel::Serializer) do
152
+ @association.serializer_from_options = Class.new(Serializer) do
138
153
  def name
139
154
  'fake'
140
155
  end
@@ -146,6 +161,47 @@ module ActiveModel
146
161
  'user' => { name: 'Name 1', email: 'mail@server.com', profile: { name: 'fake' } }
147
162
  }, @user_serializer.as_json)
148
163
  end
164
+
165
+ def test_associations_embedding_ids_using_embed_namespace
166
+ @association.embed_namespace = :links
167
+ @association.embed = :ids
168
+ @association.key = :profile
169
+ assert_equal({
170
+ 'user' => {
171
+ name: 'Name 1', email: 'mail@server.com',
172
+ links: {
173
+ profile: @user.profile.object_id
174
+ }
175
+ }
176
+ }, @user_serializer.as_json)
177
+ end
178
+
179
+ def test_asociations_embedding_objects_using_embed_namespace
180
+ @association.embed_namespace = :links
181
+ @association.embed = :objects
182
+ assert_equal({
183
+ 'user' => {
184
+ name: 'Name 1', email: 'mail@server.com',
185
+ links: {
186
+ profile: { name: 'N1', description: 'D1' }
187
+ }
188
+ }
189
+ }, @user_serializer.as_json)
190
+ end
191
+
192
+ def test_associations_embedding_ids_using_embed_namespace_and_embed_in_root_key
193
+ @association.embed_in_root = true
194
+ @association.embed_in_root_key = :linked
195
+ @association.embed = :ids
196
+ assert_equal({
197
+ 'user' => {
198
+ name: 'Name 1', email: 'mail@server.com', 'profile_id' => @user.profile.object_id
199
+ },
200
+ linked: {
201
+ 'profiles' => [ { name: 'N1', description: 'D1' } ]
202
+ }
203
+ }, @user_serializer.as_json)
204
+ end
149
205
  end
150
206
  end
151
207
  end
@@ -0,0 +1,25 @@
1
+ require 'test_helper'
2
+
3
+ module ActiveModel
4
+ class Serializer
5
+ class KeyFormatTest < Minitest::Test
6
+ def test_lower_camel_format_option
7
+ object = WebLog.new({ name: 'Name 1', display_name: 'Display Name 1'})
8
+ serializer = WebLogSerializer.new(object, key_format: :lower_camel)
9
+
10
+ expected = { name: 'Name 1', displayName: 'Display Name 1' }
11
+
12
+ assert_equal expected, serializer.serializable_object
13
+ end
14
+
15
+ def test_lower_camel_format_serializer
16
+ object = WebLog.new({ name: 'Name 1', display_name: 'Display Name 1'})
17
+ serializer = WebLogLowerCamelSerializer.new(object)
18
+
19
+ expected = { name: 'Name 1', displayName: 'Display Name 1' }
20
+
21
+ assert_equal expected, serializer.serializable_object
22
+ end
23
+ end
24
+ end
25
+ end
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class MetaTest < ActiveModel::TestCase
5
+ class MetaTest < Minitest::Test
6
6
  def setup
7
7
  @profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
8
8
  end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ module ActiveModel
4
+ class Serializer
5
+ class OptionsTest < Minitest::Test
6
+ def setup
7
+ @serializer = ProfileSerializer.new(nil, context: {foo: :bar})
8
+ end
9
+
10
+ def test_custom_options_are_accessible_from_serializer
11
+ assert_equal({foo: :bar}, @serializer.context)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class RootAsOptionTest < ActiveModel::TestCase
5
+ class RootAsOptionTest < Minitest::Test
6
6
  def setup
7
7
  @old_root = ProfileSerializer._root
8
8
  @profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
@@ -70,7 +70,7 @@ module ActiveModel
70
70
  end
71
71
  end
72
72
 
73
- class RootInSerializerTest < ActiveModel::TestCase
73
+ class RootInSerializerTest < Minitest::Test
74
74
  def setup
75
75
  @old_root = ProfileSerializer._root
76
76
  ProfileSerializer._root = :in_serializer
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- class ScopeTest < ActiveModel::TestCase
5
+ class ScopeTest < Minitest::Test
6
6
  def setup
7
7
  @serializer = ProfileSerializer.new(nil, scope: current_user)
8
8
  end
@@ -18,7 +18,7 @@ module ActiveModel
18
18
  end
19
19
  end
20
20
 
21
- class NestedScopeTest < ActiveModel::TestCase
21
+ class NestedScopeTest < Minitest::Test
22
22
  def setup
23
23
  @association = UserSerializer._associations[:profile]
24
24
  @old_association = @association.dup
@@ -31,7 +31,7 @@ module ActiveModel
31
31
  end
32
32
 
33
33
  def test_scope_passed_through
34
- @association.serializer_class = Class.new(ActiveModel::Serializer) do
34
+ @association.serializer_from_options = Class.new(Serializer) do
35
35
  def name
36
36
  scope
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_serializers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.alpha1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-07 00:00:00.000000000 Z
13
+ date: 2014-08-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -55,6 +55,7 @@ files:
55
55
  - MIT-LICENSE
56
56
  - README.md
57
57
  - lib/action_controller/serialization.rb
58
+ - lib/action_controller/serialization_test_case.rb
58
59
  - lib/active_model/array_serializer.rb
59
60
  - lib/active_model/default_serializer.rb
60
61
  - lib/active_model/serializable.rb
@@ -71,18 +72,20 @@ files:
71
72
  - lib/active_model/serializer/version.rb
72
73
  - lib/active_model/serializer_support.rb
73
74
  - lib/active_model_serializers.rb
74
- - test/coverage_setup.rb
75
75
  - test/fixtures/active_record.rb
76
76
  - test/fixtures/poro.rb
77
77
  - test/integration/action_controller/serialization_test.rb
78
+ - test/integration/action_controller/serialization_test_case_test.rb
78
79
  - test/integration/active_record/active_record_test.rb
79
80
  - test/integration/generators/resource_generator_test.rb
80
81
  - test/integration/generators/scaffold_controller_generator_test.rb
81
82
  - test/integration/generators/serializer_generator_test.rb
82
83
  - test/test_app.rb
83
84
  - test/test_helper.rb
84
- - test/tmp/app/serializers/account_serializer.rb
85
+ - test/unit/active_model/array_serializer/except_test.rb
86
+ - test/unit/active_model/array_serializer/key_format_test.rb
85
87
  - test/unit/active_model/array_serializer/meta_test.rb
88
+ - test/unit/active_model/array_serializer/only_test.rb
86
89
  - test/unit/active_model/array_serializer/root_test.rb
87
90
  - test/unit/active_model/array_serializer/scope_test.rb
88
91
  - test/unit/active_model/array_serializer/serialization_test.rb
@@ -94,7 +97,9 @@ files:
94
97
  - test/unit/active_model/serializer/filter_test.rb
95
98
  - test/unit/active_model/serializer/has_many_test.rb
96
99
  - test/unit/active_model/serializer/has_one_test.rb
100
+ - test/unit/active_model/serializer/key_format_test.rb
97
101
  - test/unit/active_model/serializer/meta_test.rb
102
+ - test/unit/active_model/serializer/options_test.rb
98
103
  - test/unit/active_model/serializer/root_test.rb
99
104
  - test/unit/active_model/serializer/scope_test.rb
100
105
  homepage: https://github.com/rails-api/active_model_serializers
@@ -112,40 +117,44 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
117
  version: 1.9.3
113
118
  required_rubygems_version: !ruby/object:Gem::Requirement
114
119
  requirements:
115
- - - ">"
120
+ - - ">="
116
121
  - !ruby/object:Gem::Version
117
- version: 1.3.1
122
+ version: '0'
118
123
  requirements: []
119
124
  rubyforge_project:
120
- rubygems_version: 2.2.0
125
+ rubygems_version: 2.2.2
121
126
  signing_key:
122
127
  specification_version: 4
123
128
  summary: Bringing consistency and object orientation to model serialization. Works
124
129
  great for client-side MVC frameworks!
125
130
  test_files:
126
- - test/coverage_setup.rb
127
- - test/fixtures/active_record.rb
128
- - test/fixtures/poro.rb
129
- - test/integration/action_controller/serialization_test.rb
130
- - test/integration/active_record/active_record_test.rb
131
- - test/integration/generators/resource_generator_test.rb
132
- - test/integration/generators/scaffold_controller_generator_test.rb
133
- - test/integration/generators/serializer_generator_test.rb
134
- - test/test_app.rb
135
131
  - test/test_helper.rb
136
- - test/tmp/app/serializers/account_serializer.rb
137
- - test/unit/active_model/array_serializer/meta_test.rb
138
- - test/unit/active_model/array_serializer/root_test.rb
139
- - test/unit/active_model/array_serializer/scope_test.rb
140
- - test/unit/active_model/array_serializer/serialization_test.rb
141
- - test/unit/active_model/default_serializer_test.rb
142
- - test/unit/active_model/serializer/associations/build_serializer_test.rb
143
- - test/unit/active_model/serializer/associations_test.rb
144
- - test/unit/active_model/serializer/attributes_test.rb
145
132
  - test/unit/active_model/serializer/config_test.rb
133
+ - test/unit/active_model/serializer/associations/build_serializer_test.rb
134
+ - test/unit/active_model/serializer/meta_test.rb
135
+ - test/unit/active_model/serializer/root_test.rb
146
136
  - test/unit/active_model/serializer/filter_test.rb
137
+ - test/unit/active_model/serializer/attributes_test.rb
147
138
  - test/unit/active_model/serializer/has_many_test.rb
148
139
  - test/unit/active_model/serializer/has_one_test.rb
149
- - test/unit/active_model/serializer/meta_test.rb
150
- - test/unit/active_model/serializer/root_test.rb
151
140
  - test/unit/active_model/serializer/scope_test.rb
141
+ - test/unit/active_model/serializer/associations_test.rb
142
+ - test/unit/active_model/serializer/options_test.rb
143
+ - test/unit/active_model/serializer/key_format_test.rb
144
+ - test/unit/active_model/array_serializer/meta_test.rb
145
+ - test/unit/active_model/array_serializer/root_test.rb
146
+ - test/unit/active_model/array_serializer/except_test.rb
147
+ - test/unit/active_model/array_serializer/scope_test.rb
148
+ - test/unit/active_model/array_serializer/serialization_test.rb
149
+ - test/unit/active_model/array_serializer/only_test.rb
150
+ - test/unit/active_model/array_serializer/key_format_test.rb
151
+ - test/unit/active_model/default_serializer_test.rb
152
+ - test/integration/active_record/active_record_test.rb
153
+ - test/integration/action_controller/serialization_test_case_test.rb
154
+ - test/integration/action_controller/serialization_test.rb
155
+ - test/integration/generators/resource_generator_test.rb
156
+ - test/integration/generators/scaffold_controller_generator_test.rb
157
+ - test/integration/generators/serializer_generator_test.rb
158
+ - test/fixtures/poro.rb
159
+ - test/fixtures/active_record.rb
160
+ - test/test_app.rb