Forum: RSpec stricter routing specs with conditional routes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2009-03-25 00:14
(Received via mailing list)

could you please advise me how to test conditional routes with rspec
v1.2.0 ?
I have something like the following in my application.
map.with_options(:namespace => "admin/",
                  :conditions => { :subdomain => /^admin$/i },
                  :name_prefix => "admin_") do |admin|
Before 1.2.0 all specs run without failures. After I upgraded to rails
2.3 with rspec 1.2.0 I got a ton of failed spec related to mismatched

route_for(:controller => "admin/users", :id=>"1", :action =>
   should == {:path => "/admin/users/1", :method => :post}

this spec is failed because :subdomain => nil

How to deal with such issue?

Thank you,
This topic is locked and can not be replied to.