| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/grade.rb | 16 | 12 | 100.00%
|
100.00%
|
Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.
1 # Grade represents an entry in a grade entry form. |
2 class Grade < ActiveRecord::Base |
3 belongs_to :grade_entry_item |
4 belongs_to :grade_entry_student |
5 |
6 validates_associated :grade_entry_item |
7 validates_associated :grade_entry_student |
8 |
9 validates_numericality_of :grade, :greater_than_or_equal_to => 0, |
10 :message => I18n.t('grade_entry_forms.invalid_grade'), :allow_nil => true |
11 validates_numericality_of :grade_entry_item_id, :only_integer => true, :greater_than => 0, |
12 :message => I18n.t('invalid_id') |
13 validates_numericality_of :grade_entry_student_id, :only_integer => true, :greater_than => 0, |
14 :message => I18n.t('invalid_id') |
15 |
16 end |
Generated on Sun Feb 05 00:08:07 -0500 2012 with rcov 0.9.10