Skip to content

Commit

Permalink
fix spec about /pages request. Closes xaviershay#6. Closes xaviershay#24
Browse files Browse the repository at this point in the history
.
  • Loading branch information
Luciano Sousa authored and xaviershay committed Feb 15, 2011
1 parent 9e22187 commit 6d3c35f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions spec/controllers/pages_routing_spec.rb
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions spec/controllers/posts_controller_spec.rb
Expand Up @@ -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

0 comments on commit 6d3c35f

Please sign in to comment.