Skip to content

Commit

Permalink
adding a root node to add children to works
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoss committed Jun 12, 2014
1 parent d36394d commit 34de49c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/treeify_spec.rb
Expand Up @@ -30,14 +30,15 @@
end end


describe "Modifying the tree" do describe "Modifying the tree" do
subject(:new_root) { Node.create(name: "new root node") }
it "adds a new child" do it "adds a new child" do
expect(new_root.name).to eq("new root node")
end end


it "updates a child" do it "updates a child"
end
it "deletes a child"


it "deletes a child" do
end
end end
end end


0 comments on commit 34de49c

Please sign in to comment.