C0 code coverage information
Generated on Mon May 21 22:36:02 -0400 2007 with rcov 0.8.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 File.dirname(__FILE__) + '/../spec_helper'
2 require 'rools'
3
4 describe Rools::Facts do
5 before(:each) do
6 p = Proc.new { "this is a fact" }
7 @facts = Rools::Facts.new( nil, "String", p)
8 end
9
10 after(:each) do
11 @facts = nil
12 end
13
14 it "should have a name" do
15 @facts.name.should eql("String")
16 end
17
18 it "should have a value" do
19 @facts.fact_value.should eql("this is a fact")
20 end
21
22 it "shoudl be printable" do
23 @facts.to_s.should eql("facts: String this is a fact")
24 end
25 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.