spec/ppl/adapter/vcard/vpim_spec.rb in ppl-1.3.0 vs spec/ppl/adapter/vcard/vpim_spec.rb in ppl-1.4.1
- old
+ new
@@ -16,11 +16,11 @@
@contact.name = "John Doe"
@adapter.encode(@contact).should include("FN:John Doe")
end
it "should encode the contact's email address" do
- @contact.email_address = "john@example.org"
+ @contact.email_addresses = ["john@example.org"]
@adapter.encode(@contact).should include("EMAIL:john@example.org")
end
it "should encode the contact's phone number" do
@contact.phone_number = "01234567890"
@@ -119,10 +119,10 @@
"VERSION:3.0",
"EMAIL;TYPE=home:home@example.org",
"END:VCARD",
].join("\n")
contact = @adapter.decode(vcard)
- contact.email_address.should eq "home@example.org"
+ contact.email_addresses.first.should eq "home@example.org"
end
it "should decode the contact's phone number" do
vcard = [
"BEGIN:VCARD",