Permalink
Browse files

Tidy up spec formatting

  • Loading branch information...
1 parent 1718f7e commit abaefaa7412088b0dff20c55eed2383d0b1e52c4 @parndt parndt committed Sep 10, 2012
Showing with 17 additions and 6 deletions.
  1. +17 −6 spec/awesome_nested_set_spec.rb
@@ -250,8 +250,13 @@
it "self_and_descendants" do
parent = categories(:top_level)
- self_and_descendants = [parent, categories(:child_1), categories(:child_2),
- categories(:child_2_1), categories(:child_3)]
+ self_and_descendants = [
+ parent,
+ categories(:child_1),
+ categories(:child_2),
+ categories(:child_2_1),
+ categories(:child_3)
+ ]
self_and_descendants.should == parent.self_and_descendants
self_and_descendants.count.should == parent.self_and_descendants.count
end
@@ -271,8 +276,12 @@
it "self_and_descendants" do
parent = categories(:top_level)
- descendants = [categories(:child_1), categories(:child_2),
- categories(:child_2_1), categories(:child_3)]
+ descendants = [
+ categories(:child_1),
+ categories(:child_2),
+ categories(:child_2_1),
+ categories(:child_3)
+ ]
descendants.should == parent.descendants
end
@@ -852,7 +861,8 @@ def check_structure(entries, structure)
[1, "Child 1"],
[1, "Child 2"],
[2, "Child 2.1"],
- [1, "Child 3" ]]
+ [1, "Child 3" ]
+ ]
check_structure(Category.root.self_and_descendants, levels)
@@ -878,7 +888,8 @@ def check_structure(entries, structure)
[2, "Child 1.2"],
[1, "Child 2"],
[2, "Child 2.1"],
- [1, "Child 3" ]]
+ [1, "Child 3" ]
+ ]
check_structure(Category.root.self_and_descendants, levels)
end

0 comments on commit abaefaa

Please sign in to comment.