Commit 07fca75c06309c22c7cdf9b962f8d1d53359f81a
Committed by
Daniel
1 parent
3d56744a
Exists in
colab
and in
4 other branches
Create HotspotMetricConfigurationsController
It has just the prototype for the method so its route works. This route will be useful when creating the upcoming helper method for metric configuration creation form. Signed off by: Heitor Reis <marcheing@gmail.com>
Showing
3 changed files
with
13 additions
and
0 deletions
Show diff stats
app/controllers/hotspot_metric_configurations_controller.rb
0 → 100644
config/routes.rb
... | ... | @@ -32,6 +32,8 @@ Rails.application.routes.draw do |
32 | 32 | |
33 | 33 | resources :compound_metric_configurations, except: [:destroy, :update] |
34 | 34 | put '/compound_metric_configurations/:id' => 'compound_metric_configurations#update', as: :compound_metric_configuration_update |
35 | + | |
36 | + resources :hotspot_metric_configurations, only: [:create] | |
35 | 37 | end |
36 | 38 | |
37 | 39 | resources :reading_groups do | ... | ... |
spec/routing/hotspot_metric_configurations_routing_spec.rb
0 → 100644
... | ... | @@ -0,0 +1,8 @@ |
1 | +require "rails_helper" | |
2 | + | |
3 | +describe HotspotMetricConfigurationsController, :type => :routing do | |
4 | + describe "routing" do | |
5 | + it { is_expected.to route(:post, '/kalibro_configurations/1/hotspot_metric_configurations'). | |
6 | + to(controller: :hotspot_metric_configurations, action: :create, kalibro_configuration_id: "1") } | |
7 | + end | |
8 | +end | |
0 | 9 | \ No newline at end of file | ... | ... |