| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/membership.rb | 14 | 9 | 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 # Join model representing a member in a grouping |
2 class Membership < ActiveRecord::Base |
3 |
4 belongs_to :user |
5 belongs_to :grouping |
6 has_many :grace_period_deductions |
7 |
8 validates_presence_of :user_id, :message => "needs a user id" |
9 validates_associated :user, :message => "associated user needs to be valid" |
10 |
11 validates_presence_of :grouping_id, :message => "needs a grouping id" |
12 validates_associated :grouping, :message => "associated grouping needs to be valid" |
13 |
14 end |
Generated on Sun Feb 05 00:08:07 -0500 2012 with rcov 0.9.10