On 8 Apr 2009, at 17:15, Francis Fish wrote:

> Human being would put http://wibble.test.local and this would make
> sub_domain_fu set the variables up.
>
> Background:
>   Given I'm on the wibble.test.local domain

Before that!  You need (something to the effect of):

Background:
   Given I'm logged in as an administrator
   And I've created a subdomain 'wibble.test.local'  And I've logged out

Scenario: Viewing existing domain
   When I visit 'http://wibble.test.local/'
   Then I should see the login page

Scenario: Viewing non-existent domain
   When I visit 'http://wibble.test.local/'
   Then I should see an error message

I get the feeling you're trying to prove something lower-level.  What  
you benefit most from proving is that 'this domain has been set up' is  
equivalent to 'I can view this domain's page', and the corresponding  
negated version.


> What do you put into the supporting Ruby?? I'll keep digging anyway
> but if there's a handy URL that gets me there I'd really appreciate
> it. This is relatively easy to fake out in rspec and I bet it's easy
> in cucumber too, just knowing where to look.

No faking!!! ;o)

A false positive in Cucumber here could mean you deploying this app  
with broken domain handling, which would block any access to the site.

Ashley


-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/
http://twitter.com/ashleymoran







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to