X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=spec%2Fgraph%2Fvertex_spec.rb;fp=spec%2Fgraph%2Fvertex_spec.rb;h=33b9e0313ea4d360a8cfad9168f464fb2a2a29d7;hb=e2bfe13863188f286cdfda010aac750591a7e027;hp=e091289557143377b6f5c7923e3f156b0350ebe0;hpb=2978dd081219adda6952feb65b1782cfe749f133;p=graph.njae.git diff --git a/spec/graph/vertex_spec.rb b/spec/graph/vertex_spec.rb index e091289..33b9e03 100644 --- a/spec/graph/vertex_spec.rb +++ b/spec/graph/vertex_spec.rb @@ -25,6 +25,14 @@ module GraphNjae v.score.should == 15 end end # adds attributes + + describe "#to_s" do + it "returns the string form of a vertex" do + v.name = :v1 + v.to_s.should == '' + end + end + describe "#<<" do it "adds a single edge between vertices" do