Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add url generation tests for #10185

  • Loading branch information...
commit c1024409178ccaff8dd6f2cb221e3463423d3fc6 1 parent 3ba6ae9
@pixeltrix pixeltrix authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  actionpack/test/dispatch/routing_test.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.