Sha256: b49a70db35cac14f9a71c9e992c95879adc12e1c864bc242110200859b34dd7a

Contents?: true

Size: 484 Bytes

Versions: 25

Compression:

Stored size: 484 Bytes

Contents

describe Ppl::Format::Contact::Name do

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

  describe "#process" do

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

    it "should return the contact's name if it is set" do
      @contact.name = "John Doe"
      @format.process(@contact).should eq "John Doe"
    end

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ppl-1.14.1 spec/ppl/format/contact/name_spec.rb
ppl-1.14.0 spec/ppl/format/contact/name_spec.rb
ppl-1.13.0 spec/ppl/format/contact/name_spec.rb
ppl-1.12.0 spec/ppl/format/contact/name_spec.rb
ppl-1.11.0 spec/ppl/format/contact/name_spec.rb
ppl-1.10.0 spec/ppl/format/contact/name_spec.rb
ppl-1.9.0 spec/ppl/format/contact/name_spec.rb
ppl-1.8.0 spec/ppl/format/contact/name_spec.rb
ppl-1.7.0 spec/ppl/format/contact/name_spec.rb
ppl-1.6.0 spec/ppl/format/contact/name_spec.rb
ppl-1.5.3 spec/ppl/format/contact/name_spec.rb
ppl-1.5.2 spec/ppl/format/contact/name_spec.rb
ppl-1.5.1 spec/ppl/format/contact/name_spec.rb
ppl-1.5.0 spec/ppl/format/contact/name_spec.rb
ppl-1.4.1 spec/ppl/format/contact/name_spec.rb
ppl-1.3.0 spec/ppl/format/contact/name_spec.rb
ppl-1.2.0 spec/ppl/format/contact/name_spec.rb
ppl-1.1.0 spec/ppl/format/contact/name_spec.rb
ppl-1.0.6 spec/ppl/format/contact/name_spec.rb
ppl-1.0.5 spec/ppl/format/contact/name_spec.rb