aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-06-09 04:39:01 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-06-09 04:39:01 +0000
commit160af194e49a8a0f5cf2b21c497a978db5fb4507 (patch)
tree2d4dd362cc4669a6addaca7e4d4b74034a787991 /actionpack/test/controller
parenta308ff0cdd573c2c71a7126d71089692d7dc8710 (diff)
downloadrails-160af194e49a8a0f5cf2b21c497a978db5fb4507.tar.gz
rails-160af194e49a8a0f5cf2b21c497a978db5fb4507.tar.bz2
rails-160af194e49a8a0f5cf2b21c497a978db5fb4507.zip
Routing: improve static segment test coverage. #7117 [Kevin Clark]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/routing_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index 951bca6b0d..9e5e9e1617 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -599,18 +599,18 @@ class SegmentTest < Test::Unit::TestCase
end
class StaticSegmentTest < Test::Unit::TestCase
-
+
def test_interpolation_chunk_should_respect_raw
s = ROUTING::StaticSegment.new
- s.value = 'Hello/World'
+ s.value = 'Hello World'
assert ! s.raw?
- assert_equal 'Hello/World', CGI.unescape(s.interpolation_chunk)
-
+ assert_equal 'Hello%20World', s.interpolation_chunk
+
s.raw = true
assert s.raw?
- assert_equal 'Hello/World', s.interpolation_chunk
+ assert_equal 'Hello World', s.interpolation_chunk
end
-
+
def test_regexp_chunk_should_escape_specials
s = ROUTING::StaticSegment.new