mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ignore rexml examples on ruby/spec
This commit is contained in:
parent
83240f315a
commit
e61cab3a36
Notes:
git
2020-01-12 12:29:06 +09:00
104 changed files with 1863 additions and 1551 deletions
|
|
@ -1,16 +1,19 @@
|
|||
require 'rexml/document'
|
||||
require_relative '../../../spec_helper'
|
||||
|
||||
describe "REXML::Element#document" do
|
||||
ruby_version_is ''...'2.8' do
|
||||
require 'rexml/document'
|
||||
|
||||
it "returns the element's document" do
|
||||
d = REXML::Document.new("<root><elem/></root>")
|
||||
d << REXML::XMLDecl.new
|
||||
d.root.document.should == d
|
||||
d.root.document.to_s.should == d.to_s
|
||||
end
|
||||
describe "REXML::Element#document" do
|
||||
|
||||
it "returns nil if it belongs to no document" do
|
||||
REXML::Element.new("standalone").document.should be_nil
|
||||
it "returns the element's document" do
|
||||
d = REXML::Document.new("<root><elem/></root>")
|
||||
d << REXML::XMLDecl.new
|
||||
d.root.document.should == d
|
||||
d.root.document.to_s.should == d.to_s
|
||||
end
|
||||
|
||||
it "returns nil if it belongs to no document" do
|
||||
REXML::Element.new("standalone").document.should be_nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue