diff options
| author | Luke Kanies <luke@madstop.com> | 2007-11-18 23:24:57 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-11-18 23:24:57 -0600 |
| commit | edc4b1deefee5e0e0088c0f291137bbfa9cb2434 (patch) | |
| tree | f7338fdf59f115ae727aa7c01f0aaf2efc2e6c42 /spec | |
| parent | c19835ce9f8a5138b30a1a32ca741c996b0916d2 (diff) | |
| download | puppet-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-x | spec/unit/simple_graph.rb | 4 |
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 |
