Skip to content

Commit

Permalink
Ensure a new tree is generated when filtering by layer comps
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingice committed Sep 28, 2013
1 parent 42adb8b commit e61d84f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/hierarchy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
expect(tree.children.size).to eq(1)
expect(tree.children[0].name).to eq("Version A")
end

it "should return a new tree when filtering by layer comps" do
tree = @tree.filter_by_comp('Version A')
expect(tree).to_not eq(@tree)
expect(@tree.children.size).to eq(3)
end
end
end
end

0 comments on commit e61d84f

Please sign in to comment.