Skip to content

Commit

Permalink
Merge pull request #2990 from AparnaKarve/bz1454829_fix_routing_sort_…
Browse files Browse the repository at this point in the history
…template_grid

Fix routing for `sort template grid` in vm_cloud controller
  • Loading branch information
Dan Clarizio authored Dec 8, 2017
2 parents 4ae764d + 9ebf810 commit 66c12e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3206,6 +3206,7 @@
scan_histories
sections_field_changed
security_groups
sort_template_grid
floating_ips
network_routers
network_ports
Expand Down
6 changes: 6 additions & 0 deletions spec/routing/vm_cloud_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@
expect(get("/#{controller_name}/filesystem_download")).to route_to("#{controller_name}#filesystem_download")
end
end

describe '#sort_template_grid' do
it 'routes with POST' do
expect(post("/#{controller_name}/sort_template_grid")).to route_to("#{controller_name}#sort_template_grid")
end
end
end

0 comments on commit 66c12e4

Please sign in to comment.