Topic: rspec and subdomain_routes

Hi,

I'm having some trouble with my controller specs when using the subdomain_routes gem.
The only thing that still works is the named routes part.

My whole authentication system is running under secure.domain.com.
The routes for that:

map.subdomain :secure, :name => :secure do |secure|
  secure.login :controller => 'sessions', :action => 'new'
  secure.logout ...
  ...
def

This means the routes are only recognized under secure.domain.com and not www.domain.com or domain.com.
Obviously this is exactly what I need but now 30% of my specs are broken and I ran out of ideas on how to fix them.

Anyone an idea?

Last edited by fibe (2010-04-03 04:20:36)