Permalink
Browse files

allow negative numbers in object_ids

  • Loading branch information...
1 parent e15d721 commit 0f19677725ee8fbb31cbe0adb045349b9ed7cc85 @joshbuddy committed Sep 10, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/test_misc.rb
View
@@ -99,9 +99,8 @@ def test_to_s_and_inspect
router.add('/').to(:test)
router.add('/test').to(:test2)
router.post('/test').to(:test3)
- p router.to_s
- assert router.to_s.match(/^#<HttpRouter:0x[0-9a-f]+ number of routes \(3\) ignore_trailing_slash\? \(true\) redirect_trailing_slash\? \(false\) known_methods \(POST\)>$/)
- assert router.inspect.match(/^#<HttpRouter:0x[0-9a-f]+ number of routes \(3\) ignore_trailing_slash\? \(true\) redirect_trailing_slash\? \(false\) known_methods \(POST\)>/)
+ assert router.to_s.match(/^#<HttpRouter:0x[0-9a-f-]+ number of routes \(3\) ignore_trailing_slash\? \(true\) redirect_trailing_slash\? \(false\) known_methods \(POST\)>$/)
+ assert router.inspect.match(/^#<HttpRouter:0x[0-9a-f-]+ number of routes \(3\) ignore_trailing_slash\? \(true\) redirect_trailing_slash\? \(false\) known_methods \(POST\)>/)
assert router.inspect.match(/Path: "\/test" for route unnamed route to :test3/)
end
end

0 comments on commit 0f19677

Please sign in to comment.