diff options
Diffstat (limited to 'spec/rubyspec/library/rexml/attribute/node_type_spec.rb')
-rw-r--r-- | spec/rubyspec/library/rexml/attribute/node_type_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/rubyspec/library/rexml/attribute/node_type_spec.rb b/spec/rubyspec/library/rexml/attribute/node_type_spec.rb new file mode 100644 index 0000000000..d44695deff --- /dev/null +++ b/spec/rubyspec/library/rexml/attribute/node_type_spec.rb @@ -0,0 +1,10 @@ +require File.expand_path('../../../../spec_helper', __FILE__) +require 'rexml/document' + +describe "REXML::Attribute#node_type" do + it "always returns :attribute" do + attr = REXML::Attribute.new("foo", "bar") + attr.node_type.should == :attribute + REXML::Attribute.new(attr).node_type.should == :attribute + end +end |