From e4150cc23fdfd8292ec6d50e7f73fcc5dff690c3 Mon Sep 17 00:00:00 2001 From: Xavier Shay Date: Thu, 24 Mar 2011 14:15:35 +1100 Subject: [PATCH] Failing test for nil user_agent passed through to constraints --- actionpack/test/dispatch/routing_test.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 5e5758a..c1fbdeb 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -104,6 +104,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest get 'admin/accounts' => "queenbee#accounts" end + constraints :user_agent => /MSIE 6/i do + get 'admin' => redirect('/unsupported_browser') + end + get 'admin/passwords' => "queenbee#passwords", :constraints => ::TestRoutingMapper::IpRestrictor scope 'pt', :as => 'pt' do -- 1.7.3.1