Sha256: e9e0e85a2c1d7d25c62d489c1761ea911bc1705db13ef0edb7c2112ec3eba0aa

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

# -*- coding: utf-8 -*-
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper")

describe DomWalker do

  it "should capture all files" do
    value      = Nokogiri::HTML.parse(File.read(File.join(FIXTURES, "test_json", "1.json")))
    # pp value
    parent     = value.search("//body").first
    # recursive_search(parent)

    dom_walker = DomWalker.new(parent)
    dom_walker.run(FlatPrintTreeNodeVisitor.new)
    dom_walker.run(PrintTreeNodeVisitor.new)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tree.rb-0.3.12 spec/tree_rb/input_html_page/dom_walker_spec.rb
tree.rb-0.3.11 spec/tree_rb/input_html_page/dom_walker_spec.rb