scriptonia

Jun 14 '11

Rails 3: working with subdomains(cucumber, rspec)

Hi, everyone!

Not far a long time I’ve started to work with Rails 3. In one my user story I should add subdomains to my application something like gmail account domains. And create relations for resources by account. I’ve added simple account model with friendly_id gem for creating slugs and column name. We had a lot of tests are written using cucumber and rspec. Rspec worked great with small changes in app controller and url helper but cucumber blow my head. For anyway if someone will have same issues(request timeout, ‘subdomain.’ invalid url and so on) with cucumber you can see sample subdomain application https://github.com/oivoodoo/rails3-subdomain-example .

13 notes View comments Tags: rails tests cucumber rspec subdomain

  1. oivoodoo posted this
Blog comments powered by Disqus