Sha256: 280d4f256816df36bb7db44de86cd0d387680985e49876841763b9f56f6d1eb0

Contents?: true

Size: 553 Bytes

Versions: 15

Compression:

Stored size: 553 Bytes

Contents

describe Ppl::Format::Contact::EmailAddresses do

  before(:each) do
    @format  = Ppl::Format::Contact::EmailAddresses.new
    @contact = Ppl::Entity::Contact.new
  end

  describe "#process" do

    it "should return an empty string if the contact lacks an email address" do
      @format.process(Ppl::Entity::Contact.new).should eq ""
    end

    it "should return the contact's email address if it is set" do
      @contact.email_addresses.push "jdoe@example.org"
      @format.process(@contact).should eq "jdoe@example.org"
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ppl-1.14.1 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.14.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.13.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.12.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.11.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.10.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.9.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.8.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.7.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.6.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.5.3 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.5.2 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.5.1 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.5.0 spec/ppl/format/contact/email_addresses_spec.rb
ppl-1.4.1 spec/ppl/format/contact/email_addresses_spec.rb