C0 code coverage information
Generated on Wed Jul 30 00:45:20 -0400 2008 with
rcov 0.8.1.2
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 'spec/helper' 2
3 $dbh = DBI.connect(
"DBI:Pg:m4dbi", "m4dbi", "m4dbi" )
4 # See test-schema.sql
and test-data.sql 5
6 describe 'a
DBI::Timestamp object' do
7 before do 8 @ts =
$dbh.sc "SELECT ts FROM many_col_table WHERE ts IS NOT NULL LIMIT
1" 9 end
10 it 'acts like a Time
object' do 11
should.raise( NoMethodError ) do 12 @ts.no_such_method_on_time_objects 13 end 14 should.not.raise( NoMethodError ) do
15 @ts.strftime
"%H:%M" 16 end
17 end 18 end
Generated using the rcov
code coverage analysis tool for Ruby version 0.8.1.2.