class IsolatedHelpersTest
Public Instance Methods
call_controller(klass, action)
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 275 def call_controller(klass, action) klass.action(action).call(@request.env) end
setup()
click to toggle source
Calls superclass method
# File actionpack/test/controller/helper_test.rb, line 279 def setup super @request.action = "index" end
test_helper_in_a()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 284 def test_helper_in_a assert_raise(ActionView::Template::Error) { call_controller(A, "index") } end
test_helper_in_b()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 288 def test_helper_in_b assert_equal "B", call_controller(B, "index").last.body end
test_helper_in_c()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 292 def test_helper_in_c assert_equal "C", call_controller(C, "index").last.body end