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