Commit 6642709f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix route specs

parent 467e7c10
......@@ -76,9 +76,9 @@ describe Admin::ProjectsController, "routing" do
end
# DELETE /admin/projects/:project_id/members/:id(.:format) admin/projects/members#destroy {id: /[^\/]+/, project_id: /[^\/]+/}
describe Admin::Projects::MembersController, "routing" do
describe Admin::MembersController, "routing" do
it "to #destroy" do
delete("/admin/projects/test/members/1").should route_to('admin/projects/members#destroy', project_id: 'test', id: '1')
delete("/admin/projects/test/members/1").should route_to('admin/members#destroy', project_id: 'test', id: '1')
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment