aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/url_rewriter_test.rb
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-06-01 15:42:08 +0000
committerJamis Buck <jamis@37signals.com>2006-06-01 15:42:08 +0000
commitb20c575ac02373723438468932ceddd97056c9ec (patch)
tree5f977af66c7c75f1d11ba9a81a3bfac75a452e6e /actionpack/test/controller/url_rewriter_test.rb
parent74b7bfa6d2c5c777b11cb6ea8687c0461b579f7e (diff)
downloadrails-b20c575ac02373723438468932ceddd97056c9ec.tar.gz
rails-b20c575ac02373723438468932ceddd97056c9ec.tar.bz2
rails-b20c575ac02373723438468932ceddd97056c9ec.zip
New routes implementation. Simpler, faster, easier to understand. The published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/url_rewriter_test.rb')
-rw-r--r--actionpack/test/controller/url_rewriter_test.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/actionpack/test/controller/url_rewriter_test.rb b/actionpack/test/controller/url_rewriter_test.rb
index 1219abdd9f..57a38f2a35 100644
--- a/actionpack/test/controller/url_rewriter_test.rb
+++ b/actionpack/test/controller/url_rewriter_test.rb
@@ -6,23 +6,6 @@ class UrlRewriterTests < Test::Unit::TestCase
@params = {}
@rewriter = ActionController::UrlRewriter.new(@request, @params)
end
-
- def test_simple_build_query_string
- assert_query_equal '?x=1&y=2', @rewriter.send(:build_query_string, :x => '1', :y => '2')
- end
- def test_convert_ints_build_query_string
- assert_query_equal '?x=1&y=2', @rewriter.send(:build_query_string, :x => 1, :y => 2)
- end
- def test_escape_spaces_build_query_string
- assert_query_equal '?x=hello+world&y=goodbye+world', @rewriter.send(:build_query_string, :x => 'hello world', :y => 'goodbye world')
- end
- def test_expand_array_build_query_string
- assert_query_equal '?x[]=1&x[]=2', @rewriter.send(:build_query_string, :x => [1, 2])
- end
-
- def test_escape_spaces_build_query_string_selected_keys
- assert_query_equal '?x=hello+world', @rewriter.send(:build_query_string, {:x => 'hello world', :y => 'goodbye world'}, [:x])
- end
def test_overwrite_params
@params[:controller] = 'hi'