aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2014-08-16 16:45:11 -0400
committerJosé Valim <jose.valim@plataformatec.com.br>2014-08-17 13:20:22 -0400
commit2b0c602bc3dd2928b8a77465f305c765dbb447e5 (patch)
tree1817aad5073247551012ee02de7bbaf06f0117e2 /actionview/test
parentee77770d57de9da87b05a2fe84b9d46ec6852c62 (diff)
downloadrails-2b0c602bc3dd2928b8a77465f305c765dbb447e5.tar.gz
rails-2b0c602bc3dd2928b8a77465f305c765dbb447e5.tar.bz2
rails-2b0c602bc3dd2928b8a77465f305c765dbb447e5.zip
Remove usafe of respond_to in ActionView tests
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/activerecord/controller_runtime_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/test/activerecord/controller_runtime_test.rb b/actionview/test/activerecord/controller_runtime_test.rb
index 368bec1c70..b5bfcf12a3 100644
--- a/actionview/test/activerecord/controller_runtime_test.rb
+++ b/actionview/test/activerecord/controller_runtime_test.rb
@@ -8,8 +8,6 @@ ActionController::Base.send :include, ActiveRecord::Railties::ControllerRuntime
class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
class LogSubscriberController < ActionController::Base
- respond_to :html
-
def show
render :inline => "<%= Project.all %>"
end
@@ -21,7 +19,7 @@ class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
def create
ActiveRecord::LogSubscriber.runtime += 100
project = Project.last
- respond_with(project, location: url_for(action: :show))
+ redirect_to "/"
end
def redirect