diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-04 18:20:17 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-04 18:22:09 -0200 |
commit | afd5e9a7ff0072e482b0b0e8e238d21b070b6280 (patch) | |
tree | d552dcef33775701e52f3f8979ff48753ffb0bef /actionpack/test/controller | |
parent | fc12655be5affa692a80d9439e93c7e897f06eef (diff) | |
download | rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.tar.gz rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.tar.bz2 rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.zip |
Remove respond_to/respond_with placeholder methods
This functionality has been extracted to the responders gem.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/mime/responders_test.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/actionpack/test/controller/mime/responders_test.rb b/actionpack/test/controller/mime/responders_test.rb deleted file mode 100644 index 032b4c0ab1..0000000000 --- a/actionpack/test/controller/mime/responders_test.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'abstract_unit' -require 'controller/fake_models' - -class ResponderTest < ActionController::TestCase - def test_class_level_respond_to - e = assert_raises(NoMethodError) do - Class.new(ActionController::Base) do - respond_to :json - end - end - - assert_includes e.message, '`responders` gem' - assert_includes e.message, '~> 2.0' - end - - def test_respond_with - klass = Class.new(ActionController::Base) do - def index - respond_with Customer.new("david", 13) - end - end - - @controller = klass.new - - e = assert_raises(NoMethodError) do - get :index - end - - assert_includes e.message, '`responders` gem' - assert_includes e.message, '~> 2.0' - end -end |