Sha256: b1e76387caadf7eed5b476895bb736d684921d6daaa979d71dc83969743cdca3

Contents?: true

Size: 544 Bytes

Versions: 10

Compression:

Stored size: 544 Bytes

Contents

describe Ppl::Format::Contact::EmailAddress do

  before(:each) do
    @format  = Ppl::Format::Contact::EmailAddress.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_address = "jdoe@example.org"
      @format.process(@contact).should eq "jdoe@example.org"
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ppl-1.3.0 spec/ppl/format/contact/email_address_spec.rb
ppl-1.2.0 spec/ppl/format/contact/email_address_spec.rb
ppl-1.1.0 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.6 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.5 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.4 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.3 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.1 spec/ppl/format/contact/email_address_spec.rb
ppl-1.0.0 spec/ppl/format/contact/email_address_spec.rb
ppl-0.9.0 spec/ppl/format/contact/email_address_spec.rb