aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/redirect_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/redirect_test.rb')
-rwxr-xr-xactionpack/test/controller/redirect_test.rb22
1 files changed, 3 insertions, 19 deletions
diff --git a/actionpack/test/controller/redirect_test.rb b/actionpack/test/controller/redirect_test.rb
index 575532c1be..df037ec28d 100755
--- a/actionpack/test/controller/redirect_test.rb
+++ b/actionpack/test/controller/redirect_test.rb
@@ -4,11 +4,7 @@ class RedirectController < ActionController::Base
def simple_redirect
redirect_to :action => "hello_world"
end
-
- def method_redirect
- redirect_to :dashbord_url, 1, "hello"
- end
-
+
def host_redirect
redirect_to :action => "other_host", :only_path => false, :host => 'other.test.host'
end
@@ -49,12 +45,6 @@ class RedirectTest < Test::Unit::TestCase
assert_equal "http://test.host/redirect/hello_world", redirect_to_url
end
- def test_redirect_with_method_reference_and_parameters
- assert_deprecated(/redirect_to/) { get :method_redirect }
- assert_response :redirect
- assert_equal "http://test.host/redirect/dashboard/1?message=hello", redirect_to_url
- end
-
def test_simple_redirect_using_options
get :host_redirect
assert_response :redirect
@@ -122,19 +112,13 @@ module ModuleTest
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
-
+
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
-
- def test_redirect_with_method_reference_and_parameters
- assert_deprecated(/redirect_to/) { get :method_redirect }
- assert_response :redirect
- assert_equal "http://test.host/module_test/module_redirect/dashboard/1?message=hello", redirect_to_url
- end
-
+
def test_simple_redirect_using_options
get :host_redirect
assert_response :redirect