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-maglev--1.5.2 test/xml/test_document_encoding.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
ftl-0.2.0 vendor/bundle/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc5 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc5-x86-mswin32-60 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc5-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc5-java test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc4 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc4-x86-mswin32-60 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc4-x86-mingw32 test/xml/test_document_encoding.rb
nokogiri-1.5.3.rc4-java test/xml/test_document_encoding.rb
horseman-0.0.5 vendor/ruby/1.9.1/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/nokogiri-1.5.2/test/xml/test_document_encoding.rb