@@ -173,20 +173,6 @@ def test_render_using_implicit_serializer
173
173
assert_equal expected . to_json , @response . body
174
174
end
175
175
176
- def test_render_using_custom_root
177
- get :render_using_custom_root
178
-
179
- assert_equal 'application/json' , @response . content_type
180
- assert_equal '{"custom_root":{"name":"Name 1","description":"Description 1"}}' , @response . body
181
- end
182
-
183
- def test_render_using_custom_root_and_meta
184
- get :render_using_custom_root_and_meta
185
-
186
- assert_equal 'application/json' , @response . content_type
187
- assert_equal '{"custom_root":{"name":"Name 1","description":"Description 1"},"meta":{"total":10}}' , @response . body
188
- end
189
-
190
176
def test_render_using_default_root
191
177
get :render_using_default_adapter_root
192
178
@@ -223,26 +209,6 @@ def test_render_using_custom_root_in_adapter_with_a_default
223
209
assert_equal expected . to_json , @response . body
224
210
end
225
211
226
- def test_render_array_using_custom_root_and_meta
227
- get :render_array_using_custom_root_and_meta
228
-
229
- assert_equal 'application/json' , @response . content_type
230
-
231
- expected = { custom_root : [
232
- {
233
- name : 'Name 1' ,
234
- description : 'Description 1' ,
235
- } ,
236
- {
237
- name : 'Name 2' ,
238
- description : 'Description 2' ,
239
- } ] ,
240
- meta : { total : 10 }
241
- }
242
-
243
- assert_equal expected . to_json , @response . body
244
- end
245
-
246
212
def test_render_array_using_implicit_serializer
247
213
get :render_array_using_implicit_serializer
248
214
assert_equal 'application/json' , @response . content_type
0 commit comments