Hi all,
I've recently started using Cucumber & Subdomain-fu together, and it's made me do some terrible things.
I have a step definition that used to look like this:
path = grok_path(path)
get path
That's nice and easy, in my opinion. But now it's this:
path = grok_path(path)
get "http://#{subdomain}.example.com#{path}"
This works, but it's not exactly clean. What's a better way to do this?