Skip to content

Commit

Permalink
RouteMapper tests changed against ErrorsController
Browse files Browse the repository at this point in the history
  • Loading branch information
miks committed Jan 19, 2015
1 parent 00c63b8 commit a7764f2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions releaf-core/spec/routing/route_mapper_spec.rb
Expand Up @@ -94,7 +94,8 @@
end

it "route to page not found" do
expect(get: "/admin/books/1/toolbox").to route_to(controller: "releaf/home", action: "page_not_found", path: "books/1/toolbox")
expect(get: "/admin/books/1/toolbox")
.to route_to(controller: "releaf/core/errors", action: "page_not_found", path: "books/1/toolbox")
end
end

Expand All @@ -108,7 +109,8 @@
end

it "route to page not found" do
expect(get: "/admin/books/1/toolbox").to route_to(controller: "releaf/home", action: "page_not_found", path: "books/1/toolbox")
expect(get: "/admin/books/1/toolbox")
.to route_to(controller: "releaf/core/errors", action: "page_not_found", path: "books/1/toolbox")
end
end

Expand All @@ -122,7 +124,8 @@
end

it "does not mount destroy confirm route" do
expect(get: "/admin/books/1/confirm_destroy").to route_to(controller: "releaf/home", action: "page_not_found", path: "books/1/confirm_destroy")
expect(get: "/admin/books/1/confirm_destroy")
.to route_to(controller: "releaf/core/errors", action: "page_not_found", path: "books/1/confirm_destroy")
end
end

Expand All @@ -136,7 +139,8 @@
end

it "does not mount destroy confirm route" do
expect(get: "/admin/books/1/confirm_destroy").to route_to(controller: "releaf/home", action: "page_not_found", path: "books/1/confirm_destroy")
expect(get: "/admin/books/1/confirm_destroy")
.to route_to(controller: "releaf/core/errors", action: "page_not_found", path: "books/1/confirm_destroy")
end
end

Expand Down

0 comments on commit a7764f2

Please sign in to comment.