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/string'
3
4 describe String, "#to_camel_case" do
5 it "should return a camel-case string unchanged" do
6 "CamelCaseString".to_camel_case.should == "CamelCaseString"
7 end
8
9 it "should return a camel-case string from an input string with substrings separated by underscores" do
10 "camel_case_string".to_camel_case.should == "CamelCaseString"
11 end
12
13 it "should return a camel-case string with the first letters of each substring in uppercase and the rest of the letters in each substring unchanged" do
14 "cAmEl_cASE_stRinG".to_camel_case.should == "CAmElCASEStRinG"
15 end
16
17 it "should remove leading and trailing underscores" do
18 "camel_case_string_".to_camel_case.should == "CamelCaseString"
19 "_camel_case_string".to_camel_case.should == "CamelCaseString"
20 "camel_case_string__".to_camel_case.should == "CamelCaseString"
21 "__camel_case_string".to_camel_case.should == "CamelCaseString"
22 "_camel_case_string_".to_camel_case.should == "CamelCaseString"
23 "__camel_case_string__".to_camel_case.should == "CamelCaseString"
24 end
25 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.