Sha256: 2a1f0a5d7d24408deec9dc8f8f03748cd480a50abfc67b6ba6db1d7384076481

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

describe Gollum::DescendantTree::TreeBuilder do

  it "returns the correct tree" do
    wiki = double
    wiki.stub(:pages).and_return(pages)
    tree_builder = Gollum::DescendantTree::TreeBuilder.new(wiki, 'current_page.md', 'home')
    expect(tree_builder.tree).to eq(tree_with_correct_nesting)
  end

  def pages
    build_mock_pages
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gollum-descendant_tree-0.0.8 spec/lib/gollum/descendant_tree/tree_builder_spec.rb
gollum-descendant_tree-0.0.7 spec/lib/gollum/descendant_tree/tree_builder_spec.rb
gollum-descendant_tree-0.0.6 spec/lib/gollum/descendant_tree/tree_builder_spec.rb
gollum-descendant_tree-0.0.5 spec/lib/gollum/descendant_tree/tree_builder_spec.rb
gollum-descendant_tree-0.0.4 spec/lib/gollum/descendant_tree/tree_builder_spec.rb