Merged in SimpleCov from master#
[graph.njae.git] / spec / graph / vertex_spec.rb
index 9d109db3aced26dfdb072fdea7eed4ca9439985b..ca9f7eb715687d7ee3ec69e16463c3f9327f4342 100644 (file)
@@ -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 == '<V: v1>'
+      end
+    end
+
     
     describe '#<<' do
       it 'adds a single edge between vertices' do