summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-18 23:24:57 -0600
committerLuke Kanies <luke@madstop.com>2007-11-18 23:24:57 -0600
commitedc4b1deefee5e0e0088c0f291137bbfa9cb2434 (patch)
treef7338fdf59f115ae727aa7c01f0aaf2efc2e6c42 /spec
parentc19835ce9f8a5138b30a1a32ca741c996b0916d2 (diff)
downloadpuppet-edc4b1deefee5e0e0088c0f291137bbfa9cb2434.tar.gz
puppet-edc4b1deefee5e0e0088c0f291137bbfa9cb2434.tar.xz
puppet-edc4b1deefee5e0e0088c0f291137bbfa9cb2434.zip
Fixing a SimpleGraph unit test so it doesn't depend
on hashing.
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/simple_graph.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/simple_graph.rb b/spec/unit/simple_graph.rb
index 1be29c0dc..b9d939867 100755
--- a/spec/unit/simple_graph.rb
+++ b/spec/unit/simple_graph.rb
@@ -52,7 +52,9 @@ describe Puppet::SimpleGraph, " when managing vertices" do
it "should return all set vertices when asked" do
@graph.add_vertex!(:one)
@graph.add_vertex!(:two)
- @graph.vertices.should == [:one, :two]
+ @graph.vertices.length.should == 2
+ @graph.vertices.should include(:one)
+ @graph.vertices.should include(:two)
end
it "should remove a given vertex when asked" do