Methods
- S
- T
Instance Public methods
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 120 def setup @controller = ModuleRedirectController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 144 def test_module_redirect get :module_redirect assert_response :redirect assert_equal "http://test.host/redirect/hello_world", redirect_to_url end
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 150 def test_module_redirect_using_options get :module_redirect assert_response :redirect assert_redirected_to :controller => 'redirect', :action => "hello_world" end
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 132 def test_redirect_with_method_reference_and_parameters assert_deprecated(%rredirect_to/) { get :method_redirect } assert_response :redirect assert_equal "http://test.host/module_test/module_redirect/dashboard/1?message=hello", redirect_to_url end
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 126 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
Source: show
# File rails/actionpack/test/controller/redirect_test.rb, line 138 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