aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_other_test.rb
diff options
context:
space:
mode:
authorBenjamin Fleischer <github@benjaminfleischer.com>2016-01-03 22:13:59 -0600
committerBenjamin Fleischer <github@benjaminfleischer.com>2016-01-03 22:51:45 -0600
commitf27360af04f11506d7081b2bd46c9ea0413a910c (patch)
tree8de9e9dba60a0f48df1d3e7ef8489886d26124d4 /actionpack/test/controller/render_other_test.rb
parent41ed6e90b13e8f70270531870f29454b8fe329e1 (diff)
downloadrails-f27360af04f11506d7081b2bd46c9ea0413a910c.tar.gz
rails-f27360af04f11506d7081b2bd46c9ea0413a910c.tar.bz2
rails-f27360af04f11506d7081b2bd46c9ea0413a910c.zip
Add ActionController:Renderers test
To complement actionpack/test/controller/metal/renderers_test.rb
Diffstat (limited to 'actionpack/test/controller/render_other_test.rb')
-rw-r--r--actionpack/test/controller/render_other_test.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/actionpack/test/controller/render_other_test.rb b/actionpack/test/controller/render_other_test.rb
deleted file mode 100644
index 1f5215ac55..0000000000
--- a/actionpack/test/controller/render_other_test.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'abstract_unit'
-
-
-class RenderOtherTest < ActionController::TestCase
- class TestController < ActionController::Base
- def render_simon_says
- render :simon => "foo"
- end
- end
-
- tests TestController
-
- def test_using_custom_render_option
- ActionController.add_renderer :simon do |says, options|
- self.content_type = Mime[:text]
- self.response_body = "Simon says: #{says}"
- end
-
- get :render_simon_says
- assert_equal "Simon says: foo", @response.body
- ensure
- ActionController.remove_renderer :simon
- end
-end