Skip to content

Commit

Permalink
Add url generation tests for #10185
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Apr 18, 2013
1 parent 3ba6ae9 commit c102440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actionpack/test/dispatch/routing_test.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c102440

Please sign in to comment.