Commit 96cd3a3f7e3bb785656d9ca8d3b35730eca5ccb4
Committed by
Rafael Manzo
1 parent
55caadf6
Exists in
colab
and in
4 other branches
Removed delete route for compound metrics.
We'll use the delete route of metric_configurations.
Showing
2 changed files
with
1 additions
and
3 deletions
Show diff stats
config/routes.rb
... | ... | @@ -16,7 +16,7 @@ Mezuro::Application.routes.draw do |
16 | 16 | get '/metric_configurations/:metric_name/:base_tool_name/new' => 'metric_configurations#new', as: :new_metric_configuration |
17 | 17 | put '/metric_configurations/:id' => 'metric_configurations#update', as: :metric_configuration_update |
18 | 18 | |
19 | - resources :compound_metric_configurations | |
19 | + resources :compound_metric_configurations, except: [:delete] | |
20 | 20 | end |
21 | 21 | |
22 | 22 | resources :reading_groups do | ... | ... |
spec/routing/compound_metric_configurations_routing_spec.rb
... | ... | @@ -14,7 +14,5 @@ describe CompoundMetricConfigurationsController do |
14 | 14 | to(controller: :compound_metric_configurations, action: :edit, mezuro_configuration_id: "1", id: "1") } |
15 | 15 | it { should route(:put, '/mezuro_configurations/1/compound_metric_configurations/1'). |
16 | 16 | to(controller: :compound_metric_configurations, action: :update, mezuro_configuration_id: "1", id: "1") } |
17 | - it { should route(:delete, '/mezuro_configurations/1/compound_metric_configurations/1'). | |
18 | - to(controller: :compound_metric_configurations, action: :destroy, mezuro_configuration_id: "1", id: "1") } | |
19 | 17 | end |
20 | 18 | end | ... | ... |