projects
/
graph.njae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added hash parameter to graph initialization
[graph.njae.git]
/
spec
/
graph
/
edge_spec.rb
diff --git
a/spec/graph/edge_spec.rb
b/spec/graph/edge_spec.rb
index 2e7dbfcc9a64863648ed928699155ea173c004b0..d139667126886b8c382368378ab1c43aafe44fc5 100644
(file)
--- a/
spec/graph/edge_spec.rb
+++ b/
spec/graph/edge_spec.rb
@@
-8,6
+8,15
@@
module GraphNjae
e = Edge.new
e.connections.should be_empty
end
e = Edge.new
e.connections.should be_empty
end
+
+ it "creates an edge with some parameters" do
+ e = Edge.new :value1 => 1, :value2 => "value2", :value3 => :v3
+ e.value1.should == 1
+ e.value2.should == "value2"
+ e.value3.should == :v3
+ e.value4.should be_nil
+ end
+
end # #initialize
describe "adds attribues" do
end # #initialize
describe "adds attribues" do