test/vcard_test.rb in vcard-0.2.6 vs test/vcard_test.rb in vcard-0.2.7
- old
+ new
@@ -488,10 +488,10 @@
card = Vcard::Vcard::Maker.make2 do |m|
m.name do |n|
n.given = "John"
n.family = "Woe"
end
- m.role = "Office Manager\r\n;Something Else"
+ m.add_role "Office Manager\r\n;Something Else"
end
assert_equal "Office Manager\n;Something Else", card.role
assert_match /Office Manager\\n\\;Something Else/, card.to_s
card = Vcard::Vcard.decode(card.encode).first
assert_equal "Office Manager\n;Something Else", card.role