aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-04-18 16:58:50 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2013-04-18 17:12:40 +0100
commitc1024409178ccaff8dd6f2cb221e3463423d3fc6 (patch)
treedc7464d3f8a7bc9f8f1e258c6f8727465cc977c0 /actionpack
parent3ba6ae95f0da7b69f6c16ad61df027234a20506a (diff)
downloadrails-c1024409178ccaff8dd6f2cb221e3463423d3fc6.tar.gz
rails-c1024409178ccaff8dd6f2cb221e3463423d3fc6.tar.bz2
rails-c1024409178ccaff8dd6f2cb221e3463423d3fc6.zip
Add url generation tests for #10185
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/routing_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 208c0d38a3..afd456e8e5 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -3356,6 +3356,7 @@ class TestUrlConstraints < ActionDispatch::IntegrationTest
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 @@ class TestUrlConstraints < ActionDispatch::IntegrationTest
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