Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f897dd66e4
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (18 sloc) 0.613 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
require File.dirname(__FILE__) + '/spec_helper'

describe W3C::DOM do
  it "has a Node type" do
    lambda { W3C::DOM::Node }.must_not raise_error
  end
  
  it "can have a Document Node" do
    W3C::DOM::Document.ancestors.must include(W3C::DOM::Node)
  end

  it "can have a ProcessingInstruction Node" do
    W3C::DOM::ProcessingInstruction.ancestors.must include(W3C::DOM::Node)
  end
  
  it "can have a Comment Node" do
    W3C::DOM::Comment.ancestors.must include(W3C::DOM::Node)
  end
  
  it "can have a DocumentType Node" do
    W3C::DOM::DocumentType.ancestors.must include(W3C::DOM::Node)
  end
  
end
Something went wrong with that request. Please try again.