Sha256: 4f2bcaf53532e63cb919605f8d790372d48606624eaef66c4d48c9758ab44b49
Contents?: true
Size: 316 Bytes
Versions: 19
Compression:
Stored size: 316 Bytes
Contents
describe "String#demodulize" do it "removes any preceding module name from the string" do "Foo::Bar".demodulize.should == "Bar" "Foo::Bar::Baz".demodulize.should == "Baz" end it "has no affect on strings with no module seperator" do "SomeClassName".demodulize.should == "SomeClassName" end end
Version data entries
19 entries across 19 versions & 1 rubygems