Sha256: a38f3d5496ba2cef2fd7e56d0d59779ee9b4e3f1d7537faab167ce93873abee3

Contents?: true

Size: 593 Bytes

Versions: 113

Compression:

Stored size: 593 Bytes

Contents

require "helper"

module Nokogiri
  module XML
    if RUBY_VERSION =~ /^1\.9/
      class TestDocumentEncoding < Nokogiri::TestCase
        def setup
          super
          @xml = Nokogiri::XML(File.read(XML_FILE), XML_FILE, 'UTF-8')
        end

        def test_url
          assert_equal @xml.encoding, @xml.url.encoding.name
        end

        def test_encoding
          assert_equal @xml.encoding, @xml.encoding.encoding.name
        end

        def test_dotted_version
          assert_equal 'UTF-8', Nokogiri::LIBXML_VERSION.encoding.name
        end
      end
    end
  end
end

Version data entries

113 entries across 113 versions & 18 rubygems

Version Path
nokogiri-1.5.0.beta.2 test/xml/test_document_encoding.rb
nokogiri-1.5.0.beta.2-java test/xml/test_document_encoding.rb
nokogiri-1.4.3.1-java test/xml/test_document_encoding.rb
nokogiri-1.4.3.1-x86-mswin32 test/xml/test_document_encoding.rb
nokogiri-1.4.3.1-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.4.3.1 test/xml/test_document_encoding.rb
nokogiri-1.4.3-java test/xml/test_document_encoding.rb
nokogiri-1.4.3-x86-mswin32 test/xml/test_document_encoding.rb
nokogiri-1.4.3-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.4.3 test/xml/test_document_encoding.rb
glebm-nokogiri-1.4.2.1 test/xml/test_document_encoding.rb
nokogiri-1.5.0.beta.1 test/xml/test_document_encoding.rb
nokogiri-1.4.2.1-x86-mswin32 test/xml/test_document_encoding.rb
nokogiri-1.4.2.1-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.5.0.beta.1-java test/xml/test_document_encoding.rb
nokogiri-1.4.2-java test/xml/test_document_encoding.rb
nokogiri-1.4.2 test/xml/test_document_encoding.rb
rubyjedi-nokogiri_java-1.4.0.20100513161003-java test/xml/test_document_encoding.rb
jwagener-nokogiri-1.4.1 test/xml/test_document_encoding.rb
revo-nokogiri-1.4.1-java test/xml/test_document_encoding.rb