Commit 07fca75c06309c22c7cdf9b962f8d1d53359f81a

Authored by Rafael Manzo
Committed by Daniel
1 parent 3d56744a

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>
app/controllers/hotspot_metric_configurations_controller.rb 0 → 100644
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
  1 +class HotspotMetricConfigurationsController < BaseMetricConfigurationsController
  2 + def create; end
  3 +end
0 \ No newline at end of file 4 \ No newline at end of file
config/routes.rb
@@ -32,6 +32,8 @@ Rails.application.routes.draw do @@ -32,6 +32,8 @@ Rails.application.routes.draw do
32 32
33 resources :compound_metric_configurations, except: [:destroy, :update] 33 resources :compound_metric_configurations, except: [:destroy, :update]
34 put '/compound_metric_configurations/:id' => 'compound_metric_configurations#update', as: :compound_metric_configuration_update 34 put '/compound_metric_configurations/:id' => 'compound_metric_configurations#update', as: :compound_metric_configuration_update
  35 +
  36 + resources :hotspot_metric_configurations, only: [:create]
35 end 37 end
36 38
37 resources :reading_groups do 39 resources :reading_groups do
spec/routing/hotspot_metric_configurations_routing_spec.rb 0 → 100644
@@ -0,0 +1,8 @@ @@ -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 \ No newline at end of file 9 \ No newline at end of file