From 2d86b6d9aec6c46fb6c85a4c504cae48d77c2564 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 15 Apr 2015 15:50:19 -0300 Subject: Move Model test class inside RenderersApiController namespace --- actionpack/test/controller/api/renderers_test.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'actionpack') diff --git a/actionpack/test/controller/api/renderers_test.rb b/actionpack/test/controller/api/renderers_test.rb index 26f53499fd..d99eb0cf13 100644 --- a/actionpack/test/controller/api/renderers_test.rb +++ b/actionpack/test/controller/api/renderers_test.rb @@ -1,17 +1,17 @@ require 'abstract_unit' require 'active_support/core_ext/hash/conversions' -class Model - def to_json(options = {}) - { :a => 'b' }.to_json(options) - end +class RenderersApiController < ActionController::API + class Model + def to_json(options = {}) + { :a => 'b' }.to_json(options) + end - def to_xml(options = {}) - { :a => 'b' }.to_xml(options) + def to_xml(options = {}) + { :a => 'b' }.to_xml(options) + end end -end -class RenderersApiController < ActionController::API def one render :json => Model.new end -- cgit v1.2.3