Permalink
Browse files

Add url generation tests for #10185

  • Loading branch information...
1 parent 3ba6ae9 commit c1024409178ccaff8dd6f2cb221e3463423d3fc6 @pixeltrix pixeltrix committed Apr 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/test/dispatch/routing_test.rb
@@ -3356,6 +3356,7 @@ def app; Routes end
test "false constraint expressions check for absence of values" do
get 'http://example.com/search'
assert_response :success
+ assert_equal 'http://example.com/search', search_url
get 'http://api.example.com/search'
assert_response :not_found
@@ -3364,6 +3365,7 @@ def app; Routes end
test "true constraint expressions check for presence of values" do
get 'http://api.example.com/logs'
assert_response :success
+ assert_equal 'http://api.example.com/logs', logs_url
get 'http://example.com/logs'
assert_response :not_found

0 comments on commit c102440

Please sign in to comment.