Commit d907b3413b1c1ebdc9e814012c6600208a448b53

Authored by Daniel Alves
Committed by Rafael Manzo
1 parent 9c27ac16

Fixed repository acceptance tests.

Signed off by: Heitor Reis <marcheing@gmail.com>
app/helpers/processings_helper.rb
... ... @@ -11,7 +11,7 @@ module ProcessingsHelper
11 11 range_snapshots = metric_result.metric_configuration.kalibro_ranges
12 12  
13 13 range_snapshots.each do |range_snapshot|
14   - return range_snapshot if ((range_snapshot.beginning <= metric_result.value || range_snapshot.beginning == '-INF') && (range_snapshot.end >= metric_result.value || range_snapshot.beginning == '+INF'))
  14 + return range_snapshot if ((range_snapshot.beginning.to_f <= metric_result.value || range_snapshot.beginning == '-INF') && (range_snapshot.end.to_f >= metric_result.value || range_snapshot.beginning == 'INF'))
15 15 end
16 16  
17 17 return nil
... ...
app/models/kalibro_module.rb 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +class KalibroModule < KalibroClient::Entities::Processor::KalibroModule
  2 + include KalibroRecord
  3 +end
... ...