aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/mime
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-23 23:40:07 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-23 23:49:11 +0900
commitf2dfd5c6fdffdf65e6f07aae8e855ac802f9302f (patch)
treefbf5c025a2d172d7da148abd9bcf2832effcfb16 /actionpack/test/controller/mime
parent1f5bed98551e08b9e8bdfabbfbb0fded665a47c4 (diff)
downloadrails-f2dfd5c6fdffdf65e6f07aae8e855ac802f9302f.tar.gz
rails-f2dfd5c6fdffdf65e6f07aae8e855ac802f9302f.tar.bz2
rails-f2dfd5c6fdffdf65e6f07aae8e855ac802f9302f.zip
Privatize unneededly protected methods in Action Pack tests
Diffstat (limited to 'actionpack/test/controller/mime')
-rw-r--r--actionpack/test/controller/mime/accept_format_test.rb2
-rw-r--r--actionpack/test/controller/mime/respond_to_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/mime/accept_format_test.rb b/actionpack/test/controller/mime/accept_format_test.rb
index a2834c9f39..a22fa39051 100644
--- a/actionpack/test/controller/mime/accept_format_test.rb
+++ b/actionpack/test/controller/mime/accept_format_test.rb
@@ -40,7 +40,7 @@ class PostController < AbstractPostController
respond_to(:html, :iphone, :js)
end
-protected
+private
def with_iphone
request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone"
diff --git a/actionpack/test/controller/mime/respond_to_test.rb b/actionpack/test/controller/mime/respond_to_test.rb
index c5f8165d04..818dc119eb 100644
--- a/actionpack/test/controller/mime/respond_to_test.rb
+++ b/actionpack/test/controller/mime/respond_to_test.rb
@@ -273,7 +273,7 @@ class RespondToController < ActionController::Base
end
end
- protected
+ private
def set_layout
case action_name
when "all_types_with_layout", "iphone_with_html_response_type"