Sha256: 122fd428259ce4511cd8cb0a3904cc057eed1741510f5ba952eb5ecdd3b93729

Contents?: true

Size: 375 Bytes

Versions: 29

Compression:

Stored size: 375 Bytes

Contents

describe "String#capitalize" do
  it "returns a copy of self with the first character converted to uppercase and the remainder to lowercase" do
    "".capitalize.should == ""
    "h".capitalize.should == "H"
    "H".capitalize.should == "H"
    "hello".capitalize.should == "Hello"
    "HELLO".capitalize.should == "Hello"
    "123ABC".capitalize.should == "123abc"
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opal-0.3.29 spec/core/string/capitalize_spec.rb
opal-0.3.28 spec/core/string/capitalize_spec.rb
opal-0.3.27 spec/core/string/capitalize_spec.rb
opal-0.3.26 spec/core/string/capitalize_spec.rb
opal-0.3.25 spec/core/string/capitalize_spec.rb
opal-0.3.22 spec/core/string/capitalize_spec.rb
opal-0.3.21 test/core/string/capitalize_spec.rb
opal-0.3.20 test/core/string/capitalize_spec.rb
opal-0.3.19 test/core/string/capitalize_spec.rb