C0 code coverage information
Generated on Sun Oct 26 11:18:12 -0500 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 File.dirname(__FILE__) + '/../spec_helper'
2 require 'aquarium/extensions/symbol'
3
4 describe "Symbol#empty?" do
5
6 it "should return true for an empty symbol with whitespace" do
7 :" \t ".empty?.should be_true
8 end
9
10 it "should return false for a non-empty symbol" do
11 :x.empty?.should be_false
12 end
13 end
14
15 describe "Symbol#strip" do
16 it "should return equivalent Symbol if there is no leading or trailing whitespace." do
17 :a.strip.should == :a
18 end
19
20 it "should return new Symbol with removed leading and/or trailing whitespace, when present." do
21 :" \ta\t ".strip.should == :a
22 end
23 end
24
25 describe "Symbol#<=>" do
26 it "should return < 0 if the string representation of the left-hand side symbol is less than the string representation of the right-hand side symbol." do
27 (:a <=> :b).should == -1
28 end
29
30 it "should return > 0 if the string representation of the left-hand side symbol is greater than the string representation of the right-hand side symbol." do
31 (:b <=> :a).should == 1
32 end
33
34 it "should return 0 if the string representation of the left-hand side symbol is equal to the string representation of the right-hand side symbol." do
35 (:a <=> :a).should == 0
36 end
37 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.