./test/dolt/templates/tree_test.rb in dolt-0.4.3 vs ./test/dolt/templates/tree_test.rb in dolt-0.5.0

- old
+ new

@@ -47,6 +47,19 @@ markup = render("app/models", tree) assert_match /<table class="table table-striped gts-tree-explorer"/, markup assert_match /data-gts-tree-history="/, markup end + + it "renders context for non-empty tree" do + tree = Tree.new([ + { :type => :tree, :name => "lib" }, + { :type => :submodule, :name => "ui", :url => "git://git.git" }, + { :type => :blob, :name => "file.txt" } + ]) + + markup = render("app/models", tree) + + assert_match /icon-folder-open/, markup + assert_match /tree\/master:app"/, markup + end end