aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/test/controller/api/renderers_test.rb16
1 files changed, 8 insertions, 8 deletions
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