Updated RubySpec source to b897f30c.
[rbx.git] / spec / frozen / 1.8 / library / rexml / document / expanded_name_spec.rb
blobf5c1ca6690ce619c1ff324484d73c209159ce884
1 require 'rexml/document'
2 require File.dirname(__FILE__) + '/../../../spec_helper'
4 describe :document_expanded_name, :shared => true do
5   it "returns an empty string for root" do # root nodes have no expanded name
6     REXML::Document.new.send(@method).should == ""
7   end
8 end
10 describe "REXML::Document#expanded_name" do
11   it_behaves_like(:document_expanded_name, :expanded_name)
12 end
14 describe "REXML::Document#name" do
15   it_behaves_like(:document_expanded_name, :name)
16 end