diff --git a/spec/controllers/pages_routing_spec.rb b/spec/controllers/pages_routing_spec.rb index 066c3c0f4..02ee135d5 100644 --- a/spec/controllers/pages_routing_spec.rb +++ b/spec/controllers/pages_routing_spec.rb @@ -2,11 +2,6 @@ describe PagesController do describe "route" do - it "should not route /pages to show" do - pending("This assertion fails under 1.9.2, but not under 1.8.7. No idea why.") - {:get => "/pages"}.should_not route_to(:controller => 'pages', :action => 'show') - end - it "should recognise show with id" do {:get => "/pages/my-page"}.should route_to(:controller => 'pages', :action => 'show', :id => 'my-page') end diff --git a/spec/controllers/posts_controller_spec.rb b/spec/controllers/posts_controller_spec.rb index b369fafc2..c5636d210 100644 --- a/spec/controllers/posts_controller_spec.rb +++ b/spec/controllers/posts_controller_spec.rb @@ -160,5 +160,9 @@ def do_get do_get assigns[:comment].should equal(@comment) end + + it "should route /pages to posts#index with tag pages" do + {:get => "/pages"}.should route_to(:controller => 'posts', :action => 'index', :tag => 'pages') + end end end