Sha256: cc6ffe7e4480049979ec3808ecd30abb5f6afd3b9c7e675ed37f441f116b84d6

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

require 'assert_valid_content/validator'

require 'tmpdir'
module AssertValidContent
  TempDir = if defined? RAILS_ROOT
    File.join RAILS_ROOT, 'tmp/validate'
  else
    File.join Dir.tmpdir, 'assert_valid_content'
  end

  module Assertions
    require 'assert_valid_content/libxml.rb'
    include AssertValidContent::LibXML::Assertions  if AssertValidContent::LibXML::Installed

    require 'assert_valid_content/w3c-net.rb'
    include AssertValidContent::W3C::Assertions  if AssertValidContent::W3C::Installed
  end
end

require 'test/unit'
if defined? Test::Unit::TestCase
  module Test::Unit  # :nodoc:all
    class TestCase
      include AssertValidContent::Assertions
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
CodeMonkeySteve-assert_valid_content-0.2 lib/assert_valid_content.rb