[rspec-users] Testing Sub-domains with Cucumber

Jonathan Linowes jonathan at parkerhill.com
Wed Jan 14 12:01:15 EST 2009


On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote:

> Jonathan Linowes wrote:
>
>> I do:
>>
>> host! "#{account.to_param}.example.com"
>>
>> --linoj
>
> linoj - thanks for the info. Where do you put this?
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


for example,

Given /^a "(.+)" account$/ do |name|
   account = Account.create( :name => name )
   host! "#{account.to_param}.example.com"
end



More information about the rspec-users mailing list