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
/
graph_spec.rb
diff --git
a/spec/graph/graph_spec.rb
b/spec/graph/graph_spec.rb
index 09cc6a433cddd36d28d78fa4c09fc9f2542450da..5da61f5ef1b2bd627e0d285bb873401c6ea28c17 100644
(file)
--- a/
spec/graph/graph_spec.rb
+++ b/
spec/graph/graph_spec.rb
@@
-16,6
+16,15
@@
module GraphNjae
g.edges.should be_empty
g.vertices.should be_empty
end
g.edges.should be_empty
g.vertices.should be_empty
end
+
+ it "creates a graph with some parameters" do
+ g = Graph.new :value1 => 1, :value2 => "value2", :value3 => :v3
+ g.value1.should == 1
+ g.value2.should == "value2"
+ g.value3.should == :v3
+ g.value4.should be_nil
+ end
+
end # #initialize
describe "adds attribues" do
end # #initialize
describe "adds attribues" do