cucumber testing glitch with subdomains


A note that may help others if using subdomain_fu and cucumber.

While webrat is supposed to follow redirects, in my case, it did not do it when using subdomain_fu to handle subdomains as accounts.

The response.body contained only the string “you are being redirected” which is a real bummer when you’re writing cuke steps.

My solution was to hack in a “follow_redirect! if redirect?” to a bunch of the webrat steps.  This allowed me to write up my scenarios as usual.  But if anyone knows why this is happening and how to fix it at a more basic level, please let me know.

, ,

Comments are closed.