class ModuleTest::ModuleRedirectTest
Public Instance Methods
test_module_redirect()
click to toggle source
# File actionpack/test/controller/redirect_test.rb, line 346 def test_module_redirect get :module_redirect assert_response :redirect assert_equal "http://test.host/redirect/hello_world", redirect_to_url end
test_module_redirect_using_options()
click to toggle source
# File actionpack/test/controller/redirect_test.rb, line 352 def test_module_redirect_using_options get :module_redirect assert_response :redirect assert_redirected_to controller: "/redirect", action: "hello_world" end
test_simple_redirect()
click to toggle source
# File actionpack/test/controller/redirect_test.rb, line 334 def test_simple_redirect get :simple_redirect assert_response :redirect assert_equal "http://test.host/module_test/module_redirect/hello_world", redirect_to_url end
test_simple_redirect_using_options()
click to toggle source
# File actionpack/test/controller/redirect_test.rb, line 340 def test_simple_redirect_using_options get :host_redirect assert_response :redirect assert_redirected_to action: "other_host", only_path: false, host: "other.test.host" end