Sha256: 5dc74f2342c5ce3b97b555e029e1f082d2b3ec0965d53bf072533476f5cc273e
Contents?: true
Size: 527 Bytes
Versions: 19
Compression:
Stored size: 527 Bytes
Contents
describe "String#underscore" do it "replaces '-' in dasherized strings with underscores" do "well-hello-there".underscore.should == "well_hello_there" end it "converts single all-upcase strings into lowercase" do "OMG".underscore.should == "omg" end it "splits word bounderies and seperates using underscore" do "AdamBeynon".underscore.should == "adam_beynon" end it "does not split when 2 or more capitalized letters together" do "HTMLParser".underscore.should == "html_parser" end end
Version data entries
19 entries across 19 versions & 1 rubygems