Sha256: bd97586e72bf8fcac227c1d29c0e344ba7d8cd85d9022649953f81177d804a63

Contents?: true

Size: 652 Bytes

Versions: 25

Compression:

Stored size: 652 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', "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

25 entries across 25 versions & 2 rubygems

Version Path
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document_encoding.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document_encoding.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document_encoding.rb
nokogiri-1.3.3-x86-mswin32 test/xml/test_document_encoding.rb
nokogiri-1.3.3-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.3.3-java test/xml/test_document_encoding.rb
nokogiri-1.3.2-x86-mswin32 test/xml/test_document_encoding.rb
nokogiri-1.3.2-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.3.2-java test/xml/test_document_encoding.rb
nokogiri-1.3.0-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.3.2 test/xml/test_document_encoding.rb
nokogiri-1.3.3 test/xml/test_document_encoding.rb
nokogiri-1.2.2 test/xml/test_document_encoding.rb
nokogiri-1.2.2-x86-mswin32-60 test/xml/test_document_encoding.rb
nokogiri-1.2.2-java test/xml/test_document_encoding.rb
nokogiri-1.2.3 test/xml/test_document_encoding.rb
nokogiri-1.2.3-x86-mswin32-60 test/xml/test_document_encoding.rb
nokogiri-1.2.3-java test/xml/test_document_encoding.rb
nokogiri-1.3.0-java test/xml/test_document_encoding.rb
nokogiri-1.3.0-x86-mswin32 test/xml/test_document_encoding.rb