From c1024409178ccaff8dd6f2cb221e3463423d3fc6 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Thu, 18 Apr 2013 16:58:50 +0100 Subject: Add url generation tests for #10185 --- actionpack/test/dispatch/routing_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack') 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 -- cgit v1.2.3