[rspec-users] Routing errors with Rails 3.0.1 and Rspec 2.0.1

Nicholas Wieland nicholas.wieland at gmail.com
Wed Oct 20 02:30:03 EDT 2010


On Oct 19, 2010, at 7:07 PM, Trey wrote:

> I'm sure something is borked in my app, but I can't seem to track it
> down.

Me too, and routing as well ...

  constraints( :subdomain => /.+/ ) do
    match '/dashboard' => 'users#show'
  end

    it "routes 'http://test.example.com/dashboard' to UsersController#dashboard with subdomain 'test'" do
      { :get => 'http://test.example.com/dashboard' }.should route_to(
        :controller => 'users', :action => 'show', :subdomain => 'test' )
    end

This fails, and unless I'm not crazy a very similar example was made by David himself some time ago: http://bit.ly/bIK8fA

rails 3.0.1 and rspec 2.0.0 (and rvm too)

Did we miss something ?

  ngw



More information about the rspec-users mailing list