Commit 526b2e1472729b0d41de32948446879e7eef1b87

Authored by Leandro Santos
2 parents b4a65fda 468d2b2e

Merge branches 'rails3_AI3033-serpro_integration' and 'rails3_stable' into rails3_stable

plugins/serpro_integration/lib/serpro_integration_plugin/smile_block.rb
... ... @@ -35,6 +35,11 @@ class SerproIntegrationPlugin::SmileBlock < Block
35 35 collect_sonar_information
36 36 factor = (self.sonar_info[METRIC_COVERAGE] * self.sonar_info[METRIC_SUCCESS_DENSITY]).to_f/1000
37 37 factor
  38 + collect_sonar_information
  39 + factor = 0
  40 + if self.sonar_info[METRIC_COVERAGE] && self.sonar_info[METRIC_SUCCESS_DENSITY]
  41 + factor = (self.sonar_info[METRIC_COVERAGE] * self.sonar_info[METRIC_SUCCESS_DENSITY]).to_f/1000
  42 + end
38 43 end
39 44  
40 45 #FIXME make this test
... ...