X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=spec%2Fgraph%2Fvertex_spec.rb;h=b193bc81057558d24f9cf10ca7674937cb5d570d;hb=353a5d54ad4014af126c76617d9b02029a3ee98c;hp=49ce58ccf92b6c234b9ce2a4264b4e6f4ece74c0;hpb=5d4c8249cc22f7fc6f784def527fb72535f61581;p=graph.njae.git diff --git a/spec/graph/vertex_spec.rb b/spec/graph/vertex_spec.rb index 49ce58c..b193bc8 100644 --- a/spec/graph/vertex_spec.rb +++ b/spec/graph/vertex_spec.rb @@ -9,6 +9,14 @@ module GraphNjae v = Vertex.new v.edges.should be_empty end + + it "creates a vertex with some parameters" do + v = Vertex.new :value1 => 1, :value2 => "value2", :value3 => :v3 + v.value1.should == 1 + v.value2.should == "value2" + v.value3.should == :v3 + v.value4.should be_nil + end end # #initialize describe "adds attribues" do