diff options
Diffstat (limited to 'spec/ruby/library/rexml/attributes/shared/length.rb')
| -rw-r--r-- | spec/ruby/library/rexml/attributes/shared/length.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/ruby/library/rexml/attributes/shared/length.rb b/spec/ruby/library/rexml/attributes/shared/length.rb deleted file mode 100644 index 94681882a6..0000000000 --- a/spec/ruby/library/rexml/attributes/shared/length.rb +++ /dev/null @@ -1,13 +0,0 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) -require 'rexml/document' - -describe :rexml_attribute_length, shared: true do - it "returns the number of attributes" do - e = REXML::Element.new("root") - e.attributes.send(@method).should == 0 - - e.attributes << REXML::Attribute.new("name", "John") - e.attributes << REXML::Attribute.new("another_name", "Leo") - e.attributes.send(@method).should == 2 - end -end |
