ruby-changes:51034
From: ko1 <ko1@a...>
Date: Mon, 23 Apr 2018 01:33:54 +0900 (JST)
Subject: [ruby-changes:51034] ko1:r63241 (trunk): Same as the last commit (comment out tests for CI).
ko1 2018-04-23 01:33:49 +0900 (Mon, 23 Apr 2018) New Revision: 63241 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63241 Log: Same as the last commit (comment out tests for CI). Modified files: trunk/spec/ruby/library/rexml/element/namespaces_spec.rb trunk/spec/ruby/library/rexml/element/prefixes_spec.rb Index: spec/ruby/library/rexml/element/prefixes_spec.rb =================================================================== --- spec/ruby/library/rexml/element/prefixes_spec.rb (revision 63240) +++ spec/ruby/library/rexml/element/prefixes_spec.rb (revision 63241) @@ -7,6 +7,7 @@ describe "REXML::Element#prefixes" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rexml/element/prefixes_spec.rb#L7 @elem = doc.elements["//c"] end +=begin it "returns an array of the prefixes of the namespaces" do @elem.prefixes.should == ["y", "z"] end @@ -14,6 +15,7 @@ describe "REXML::Element#prefixes" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rexml/element/prefixes_spec.rb#L15 it "does not include the default namespace" do @elem.prefixes.include?("xmlns").should == false end +=end it "returns an empty array if no namespace was defined" do doc = REXML::Document.new "<root><something/></root>" Index: spec/ruby/library/rexml/element/namespaces_spec.rb =================================================================== --- spec/ruby/library/rexml/element/namespaces_spec.rb (revision 63240) +++ spec/ruby/library/rexml/element/namespaces_spec.rb (revision 63241) @@ -7,6 +7,7 @@ describe "REXML::Element#namespaces" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rexml/element/namespaces_spec.rb#L7 @elem = doc.elements["//c"] end +=begin it "returns a hash of the namespaces" do ns = {"y"=>"2", "z"=>"3", "xmlns"=>"1"} @elem.namespaces.keys.sort.should == ns.keys.sort @@ -28,5 +29,5 @@ describe "REXML::Element#namespaces" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rexml/element/namespaces_spec.rb#L29 values = ["2", "3", "1"] @elem.namespaces.values.sort.should == values.sort end - +=end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/