C0 code coverage information
Generated on Mon Dec 08 16:53:36 -0800 2008 with rcov 0.8.1.3
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 class Doctor < ActiveRecord::Base
2 has_many :patient_visits, :dependent => :destroy
3 has_many :patients, :through => :patient_visits
4
5 #belongs_to :user, :dependent => :destroy
6
7
8 validates_presence_of :doctor_first_name
9 validates_presence_of :doctor_last_name
10
11 validates_uniqueness_of :doctor_first_name,
12 :scope => [:doctor_middle_name, :doctor_last_name],
13 :message => ', middle name and last name combination is already in our database. Please enter a unique doctor name.'
14
15 validates_length_of :doctor_first_name, :maximum => 100, :allow_blank => true
16 validates_length_of :doctor_middle_name, :maximum => 100, :allow_blank => true
17 validates_length_of :doctor_last_name, :maximum => 100, :allow_blank => true
18 validates_length_of :doctor_remarks, :maximum => 10000, :allow_blank => true
19 end
Generated using the rcov code coverage analysis tool for Ruby
version 0.8.1.3.