Sha256: d76c80fe8de2e9f5046182321d53622a5f7d27304e4e15095439944d6e1fc299

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

require File.join(__FILE__.gsub(/(.*)?\/spec\/.*$/, '\1'), 'spec/spec_helper')

describe Rtml::Dom::Element do
  before(:each) do
    @ele = Rtml::Dom::Element.new
  end

  it "should never create two properties with the same name" do
    @ele.property :name, "test"
    @ele.property :name, "test"

    @ele.properties.should have(1).item
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 spec/models/rtml/dom/element_spec.rb
rtml-2.0.3 spec/models/rtml/dom/element_spec.rb
rtml-2.0.2 spec/models/rtml/dom/element_spec.rb
rtml-2.0.1 spec/models/rtml/dom/element_spec.rb
rtml-2.0.0.alpha.1 spec/models/rtml/dom/element_spec.rb