summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-04-21 17:39:35 -0500
committerJames Turnbull <james@lovedthanlost.net>2009-04-22 14:40:54 +1000
commit9f32172e7d93f926b2ab291e68bdd0cc955ff3d2 (patch)
treef42a0a8c20d5b7019f006a1025ffb2ea79c2c86d /spec
parent7a98459706318c2fbbfd11749333a61767ec9aae (diff)
downloadpuppet-9f32172e7d93f926b2ab291e68bdd0cc955ff3d2.tar.gz
puppet-9f32172e7d93f926b2ab291e68bdd0cc955ff3d2.tar.xz
puppet-9f32172e7d93f926b2ab291e68bdd0cc955ff3d2.zip
Fixing #2181 - Using Sets instead of Arrays in SimpleGraph
This can cause a huge speedup for large numbers of edges. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/simple_graph.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/simple_graph.rb b/spec/unit/simple_graph.rb
index a5984c989..2e7bad658 100755
--- a/spec/unit/simple_graph.rb
+++ b/spec/unit/simple_graph.rb
@@ -141,6 +141,7 @@ describe Puppet::SimpleGraph do
@graph.add_edge(one)
@graph.add_edge(two)
edges = @graph.edges
+ edges.should be_instance_of(Array)
edges.length.should == 2
edges.should include(one)
edges.should include(two)