Skip to content
Browse files

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
  • Loading branch information...
1 parent a308ff0 commit 160af194e49a8a0f5cf2b21c497a978db5fb4507 @jeremy jeremy committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/test/controller/routing_test.rb
View
12 actionpack/test/controller/routing_test.rb
@@ -599,18 +599,18 @@ def test_interpolation_statement
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

0 comments on commit 160af19

Please sign in to comment.
Something went wrong with that request. Please try again.