Sha256: c75325ff8bb658a273b73f0a2f840093e142a2ffff6fa137bd7583a53b0040d4

Contents?: true

Size: 190 Bytes

Versions: 25

Compression:

Stored size: 190 Bytes

Contents

describe "String#empty?" do
  it "returns true if the string has a length of zero" do
    "hello".empty?.should == false
    " ".empty?.should == false
    "".empty?.should == true
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/string/empty_spec.rb
opal-0.4.3 spec/rubyspec/core/string/empty_spec.rb
opal-0.4.2 spec/rubyspec/core/string/empty_spec.rb
opal-0.4.1 spec/rubyspec/core/string/empty_spec.rb
opal-0.4.0 spec/rubyspec/core/string/empty_spec.rb
opal-0.3.44 spec/rubyspec/core/string/empty_spec.rb
opal-0.3.43 spec/rubyspec/core/string/empty_spec.rb
opal-0.3.42 spec/core/string/empty_spec.rb
opal-0.3.41 spec/core/string/empty_spec.rb
opal-0.3.40 spec/core/string/empty_spec.rb
opal-0.3.39 spec/core/string/empty_spec.rb
opal-0.3.38 spec/core/string/empty_spec.rb
opal-0.3.37 spec/core/string/empty_spec.rb
opal-0.3.36 spec/core/string/empty_spec.rb
opal-0.3.35 spec/core/string/empty_spec.rb
opal-0.3.34 spec/core/string/empty_spec.rb
opal-0.3.33 spec/core/string/empty_spec.rb
opal-0.3.32 spec/core/string/empty_spec.rb
opal-0.3.31 spec/core/string/empty_spec.rb
opal-0.3.30 spec/core/string/empty_spec.rb