Cucumber default_url_options[:host] everytime "www.example.com" even if specified in environtemnts/test.rb
I specified the default_url_options in my environments/test.rb with


    config.action_mailer.default_url_options = { :host => "www.xyu.at" }

This is quite ok and in my cucumber story, where i test registration of users,
the user-activation link gets generated right

    invitation_activation_url(1)
    => "www.xyu.at/signup/1231hj23jh23"

But when I try to follow the link provided in the email with following code (using email-rspec from [http://github.com/bmabey/email-spec/tree/master][1]):

    When /^I follow the invitation link$/ do
      When 'I follow "'+invitation_activation_url(1) + '" in the email'
    end

Here the url gets created with the default-host:

    invitation_activation_url(1)
    => "www.example.com/signup/1231hj23jh23"

Can anybody help me? I don't get what I'm doing wrong.... 

Thanks!


  [1]: http://github.com/bmabey/email-spec/tree/master
Cucumber default_url_options[:host] everytime "www.example.com" even if specified in environtemnts/test.rb
===

I specified the default_url_options in my environments/test.rb with


    config.action_mailer.default_url_options = { :host => "www.xyu.at" }

This is quite ok and in my cucumber story, where i test registration of users,
the user-activation link gets generated right

    invitation_activation_url(1)
    => "www.xyu.at/signup/1231hj23jh23"

But when I try to follow the link provided in the email with following code (using email-rspec from [http://github.com/bmabey/email-spec/tree/master][1]):

    When /^I follow the invitation link$/ do
      When 'I follow "'+invitation_activation_url(1) + '" in the email'
    end

Here the url gets created with the default-host:

    invitation_activation_url(1)
    => "www.example.com/signup/1231hj23jh23"

Can anybody help me? I don't get what I'm doing wrong.... 

Thanks!


  [1]: http://github.com/bmabey/email-spec/tree/master