diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-04-15 15:50:19 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:09 -0300 |
commit | 2d86b6d9aec6c46fb6c85a4c504cae48d77c2564 (patch) | |
tree | 1162ca04739c3d47bb17970e1e117ec1aa33e293 /actionpack/test | |
parent | 032778eefb4439a72c2933ea0bd4a7a0ef776234 (diff) | |
download | rails-2d86b6d9aec6c46fb6c85a4c504cae48d77c2564.tar.gz rails-2d86b6d9aec6c46fb6c85a4c504cae48d77c2564.tar.bz2 rails-2d86b6d9aec6c46fb6c85a4c504cae48d77c2564.zip |
Move Model test class inside RenderersApiController namespace
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/api/renderers_test.rb | 16 |
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 |