test/hcard_test.rb in mofo-0.2.1 vs test/hcard_test.rb in mofo-0.2.2

- old
+ new

@@ -105,9 +105,21 @@ specify "should have a valid url" do $bob.url.should.equal "http://nubhub.com/bob" end end +context "The parsed Stoneship hCard objects" do + setup do + $stoneship ||= HCard.find(:all => fixture(:stoneship)) + end + + specify "should ony have String nicknames" do + $stoneship.collect { |h| h.nickname }.compact.uniq.each do |nickname| + nickname.should.be.an.instance_of String + end + end +end + context "The parsed simple hCard object" do setup do $simple ||= HCard.find(:first => fixture(:simple)) end