On Mon, Aug 1, 2011 at 8:29 PM, Shane Mingins <e...@mingins.com> wrote:

> Hi All
>
> With the following route
>
>   constraints(:host => "example.com") do
>     match "(*x)" => redirect { |params, request|
>       URI.parse(request.url).tap { |x| x.host = "www.example.com" }.to_s
>     }
>   end
>
>
> I am wondering how or where I would spec this?
>
> Ideally I would like to be able to write a routing spec, something like:
>
> get("http://example.com";).should route_to(:controller => "home", :action
> => "index", :host => "www.example.com")
>
> Thanks in advance
>
> Shane Mingins
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


Hi, take a look at this:
https://github.com/rspec/rspec-rails/issues/416
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to