Sha256: 0e4578e5f4d8a6d99fbbf78e62731bb70cf0c62ebe51d0358907bd4f1e4c4c7e

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

require 'rexml/document'

describe "REXML::Text#empty?" do
  it "returns true if the text is empty" do
    REXML::Text.new("").empty?.should == true
  end

  it "returns false if the text is not empty" do
    REXML::Text.new("some_text").empty?.should == false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubysl-rexml-2.0.4 spec/text/empty_spec.rb
rubysl-rexml-2.0.3 spec/text/empty_spec.rb
rubysl-rexml-1.0.0 spec/text/empty_spec.rb
rubysl-rexml-2.0.2 spec/text/empty_spec.rb
rubysl-rexml-2.0.1 spec/text/empty_spec.rb