Sha256: 4c973a86dccb75a32a1373d52a3955c2091e170e003a1ef4fe4b1a905949437e

Contents?: true

Size: 799 Bytes

Versions: 388

Compression:

Stored size: 799 Bytes

Contents

require "helper"

module Nokogiri
  module XML
    class Node
      class TestSaveOptions < Nokogiri::TestCase
        SaveOptions.constants.each do |constant|
          class_eval <<-EOEVAL
            def test_predicate_#{constant.downcase}
              options = SaveOptions.new(SaveOptions::#{constant})
              assert options.#{constant.downcase}?

              assert SaveOptions.new.#{constant.downcase}.#{constant.downcase}?
            end
          EOEVAL
        end

        def test_default_xml_save_options
          if Nokogiri.jruby?
            assert_equal 0, (SaveOptions::DEFAULT_XML & SaveOptions::FORMAT)
          else
            assert_equal SaveOptions::FORMAT, (SaveOptions::DEFAULT_XML & SaveOptions::FORMAT)
          end
        end
      end
    end
  end
end

Version data entries

388 entries across 378 versions & 34 rubygems

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