Sha256: ce9a8fe67c0a3c9f9877bd30fe44355d297ec3066b6b493dfbe791899bf1728c

Contents?: true

Size: 566 Bytes

Versions: 31

Compression:

Stored size: 566 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..',"helper"))

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

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

Version data entries

31 entries across 31 versions & 2 rubygems

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