Sha256: fd145c3df284b77c0867257a8f4a179c9ff11fbc64205843e54dd829c9c835a8

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

# -*- encoding: utf-8 -*-

require './spec/helper'

describe XmlDocument do

  it "should load as a document" do
    doc = XmlDocument.open("data/templates/menu.html")
    doc.css("ul#menu li").size.should >= 1
  end
  
  it "should load as a fragment" do
    doc = XmlDocument.open_fragment("data/templates/menu.html")
    doc.css("ul#menu li").size.should >= 1
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
genit-1.0.1 spec/xml_document_spec.rb
genit-1.0 spec/xml_document_spec.rb
genit-0.99 spec/xml_document_spec.rb
genit-0.9 spec/xml_document_spec.rb
genit-0.5 spec/xml_document_spec.rb