Sha256: eae892fddbce1de09b25a6a63486ab472703b4b18fb882398935b48953f2a2ac

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

require 'rexml/document'

describe "REXML::Attribute#hash" do
  # These are not really complete, any idea on how to make them more
  # "testable" will be appreciated.
  it "returns a hashcode made of the name and value of self" do
    a = REXML::Attribute.new("name", "value")
    a.hash.should be_kind_of(Numeric)
    b = REXML::Attribute.new(a)
    a.hash.should == b.hash
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubysl-rexml-2.0.4 spec/attribute/hash_spec.rb
rubysl-rexml-2.0.3 spec/attribute/hash_spec.rb
rubysl-rexml-1.0.0 spec/attribute/hash_spec.rb
rubysl-rexml-2.0.2 spec/attribute/hash_spec.rb
rubysl-rexml-2.0.1 spec/attribute/hash_spec.rb