diff options
| author | Luke Kanies <luke@madstop.com> | 2009-03-10 04:07:12 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-03-10 04:07:12 -0500 |
| commit | f8dea989e3f5bd7d3d823a6c3dc3cf76cd5cba4e (patch) | |
| tree | 29bbe8128203444ed2e47207c69d87601fb30c21 /spec/unit/simple_graph.rb | |
| parent | d0fc2f5738a78c51128f6377c03fe42cf50371a0 (diff) | |
| download | puppet-f8dea989e3f5bd7d3d823a6c3dc3cf76cd5cba4e.tar.gz puppet-f8dea989e3f5bd7d3d823a6c3dc3cf76cd5cba4e.tar.xz puppet-f8dea989e3f5bd7d3d823a6c3dc3cf76cd5cba4e.zip | |
Fixing #1949 - relationships now use attributes instead of a label
This was important because the use of the label to store attributes
was a holdover from the GRATR library, and if we didn't cease its
use before we switched to RESTful catalogs, then we'd be stuck with
the @label instance variable forever, essentially.
Now we can add and remove variables however we please.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/simple_graph.rb')
| -rwxr-xr-x | spec/unit/simple_graph.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/simple_graph.rb b/spec/unit/simple_graph.rb index a73e75a42..2c061ae1a 100755 --- a/spec/unit/simple_graph.rb +++ b/spec/unit/simple_graph.rb @@ -107,14 +107,14 @@ describe Puppet::SimpleGraph do end it "should provide a method to add an edge by specifying the two vertices and a label" do - @graph.add_edge(:one, :two, :stuff => :awesome) + @graph.add_edge(:one, :two, :callback => :awesome) @graph.edge?(:one, :two).should be_true end it "should provide a method for retrieving an edge label" do - edge = Puppet::Relationship.new(:one, :two, :stuff => :awesome) + edge = Puppet::Relationship.new(:one, :two, :callback => :awesome) @graph.add_edge(edge) - @graph.edge_label(:one, :two).should == {:stuff => :awesome} + @graph.edge_label(:one, :two).should == {:callback => :awesome} end it "should provide a method for retrieving an edge" do @@ -236,9 +236,9 @@ describe Puppet::SimpleGraph do end it "should retain labels on edges" do - @graph.add_edge(:one, :two, :stuff => :awesome) + @graph.add_edge(:one, :two, :callback => :awesome) edge = @graph.reversal.edge(:two, :one) - edge.label.should == {:stuff => :awesome} + edge.label.should == {:callback => :awesome} end end |
