Sha256: b50719a17d4dc1099176983d536087a53f8d528a15d34f0934045914c1f101ce

Contents?: true

Size: 367 Bytes

Versions: 256

Compression:

Stored size: 367 Bytes

Contents

require "helper"

module Nokogiri
  module XML
    class TestAdditionalNamespacesInBuilderDoc < Nokogiri::TestCase
      def test_builder_namespaced_root_node_ns
        b = Nokogiri::XML::Builder.new do |x|
          x[:foo].RDF(:'xmlns:foo' => 'http://foo.io')
        end
        assert_equal 'http://foo.io', b.doc.root.namespace.href
      end
    end
  end
end

Version data entries

256 entries across 246 versions & 24 rubygems

Version Path
tdiary-5.0.11 vendor/bundle/gems/nokogiri-1.8.4/test/namespaces/test_additional_namespaces_in_builder_doc.rb
tdiary-5.0.11 vendor/bundle/gems/nokogiri-1.8.5/test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.9.0.rc1 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.9.0.rc1-x86-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.9.0.rc1-x64-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.9.0.rc1-java test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.5 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.5-x86-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.5-x64-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.5-java test/namespaces/test_additional_namespaces_in_builder_doc.rb
daslabs-0.12.0 vendor/cache/ruby/2.5.0/gems/nokogiri-1.8.2/test/namespaces/test_additional_namespaces_in_builder_doc.rb
daslabs-0.11.0 vendor/cache/ruby/2.5.0/gems/nokogiri-1.8.2/test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.4 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.4-x86-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.4-x64-mingw32 test/namespaces/test_additional_namespaces_in_builder_doc.rb
nokogiri-1.8.4-java test/namespaces/test_additional_namespaces_in_builder_doc.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.3/test/namespaces/test_additional_namespaces_in_builder_doc.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.8.3/test/namespaces/test_additional_namespaces_in_builder_doc.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/nokogiri-1.8.3/test/namespaces/test_additional_namespaces_in_builder_doc.rb
tdiary-5.0.9 vendor/bundle/gems/nokogiri-1.8.2/test/namespaces/test_additional_namespaces_in_builder_doc.rb