riboseinc / ruby-vobject

Ruby library for parsing vObjects
BSD 2-Clause "Simplified" License
10 stars 3 forks source link

Multiple instances of custom value #5

Closed opoudjis closed 6 years ago

opoudjis commented 6 years ago

4 in local gem, 6 on Travis; there should be just the one

  2) Vcard should normalise VCF v4
     Failure/Error: expect(vobj_json).to eql(ics2)

       expected: "BEGIN:VCARD\nVERSION;VALUE=\"text\":4.0\nADR;TYPE=\"WORK\";VALUE=\"text\":pobox;apt;street;city;stat..."text\":-0500\nXML;VALUE=\"text\":<html xmlns=\"http://www.w3.org/1999/xhtml\"></html>\nEND:VCARD\n"
            got: "BEGIN:VCARD\nVERSION;VALUE=\"text\":4.0\nADR;TYPE=\"WORK\";VALUE=\"text\":pobox;apt;street;city;stat..."text\":-0500\nXML;VALUE=\"text\":<html xmlns=\"http://www.w3.org/1999/xhtml\"></html>\nEND:VCARD\n"

       (compared using eql?)

       Diff:
       @@ -10,7 +10,7 @@
        FBURL;MEDIATYPE="text/calendar";VALUE="uri":ftp://example.com/busy/project-
         a.ifb
        FN;VALUE="text":J. Doe
       -GENDER;VALUE="text":M;Fellow;Fellow;Fellow;Fellow
       +GENDER;VALUE="text":M;Fellow;Fellow;Fellow;Fellow;Fellow;Fellow
        GEO;VALUE="uri":geo:37.386013\,-122.082932
        IMPP;PREF="1";VALUE="uri":xmpp:alice@example.com
        KEY;VALUE="uri":http://www.example.com/keys/jdoe.cer

     # ./spec/vobject_spec.rb:1143:in `block (2 levels) in <top (required)>'