C0 code coverage information
Generated on Tue May 30 23:34:44 CEST 2006 with rcov 0.5.0
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 require_dependency 'transforms'
2
3 class Trackback < ActiveRecord::Base
4 belongs_to :article
5
6 validates_age_of :article_id
7 validates_against_spamdb :title, :excerpt, :ip, :url
8 validates_presence_of :title, :excerpt, :blog_name, :url
9
10 protected
11 before_save :make_nofollow, :process_trackback
12
13 def make_nofollow
14 self.blog_name = strip_html(blog_name)
15 self.title = strip_html(title)
16 self.excerpt = strip_html(excerpt)
17 end
18
19 def process_trackback
20 if excerpt.length >= 251
21 self.excerpt = excerpt[0..251] << "..."
22 end
23 end
24 end
25
Generated using the rcov code coverage analysis tool for Ruby version 0.5.0.