Commit f63c5c2493b0d9c793ba4cca25a5211733e57b05

Authored by Rafael Manzo
1 parent 12d8d4fc

Count is no longer supported as a aggregation form

app/helpers/metric_configurations_helper.rb
1 module MetricConfigurationsHelper 1 module MetricConfigurationsHelper
2 def aggregation_options 2 def aggregation_options
3 [["Average","AVERAGE"], ["Median", "MEDIAN"], ["Maximum", "MAXIMUM"], ["Minimum", "MINIMUM"], 3 [["Average","AVERAGE"], ["Median", "MEDIAN"], ["Maximum", "MAXIMUM"], ["Minimum", "MINIMUM"],
4 - ["Count", "COUNT"], ["Standard Deviation", "STANDARD_DEVIATION"]] 4 + ["Standard Deviation", "STANDARD_DEVIATION"]]
5 end 5 end
6 6
7 def reading_group_options 7 def reading_group_options
spec/helpers/metric_configurations_helper_spec.rb
@@ -4,7 +4,7 @@ describe MetricConfigurationsHelper, :type => :helper do @@ -4,7 +4,7 @@ describe MetricConfigurationsHelper, :type => :helper do
4 describe 'aggregation_form_options' do 4 describe 'aggregation_form_options' do
5 it 'should return an array with the supported aggregation forms' do 5 it 'should return an array with the supported aggregation forms' do
6 expect(helper.aggregation_options).to eq [["Average","AVERAGE"], ["Median", "MEDIAN"], ["Maximum", "MAXIMUM"], ["Minimum", "MINIMUM"], 6 expect(helper.aggregation_options).to eq [["Average","AVERAGE"], ["Median", "MEDIAN"], ["Maximum", "MAXIMUM"], ["Minimum", "MINIMUM"],
7 - ["Count", "COUNT"], ["Standard Deviation", "STANDARD_DEVIATION"]] 7 + ["Standard Deviation", "STANDARD_DEVIATION"]]
8 end 8 end
9 end 9 end
10 10