Sha256: 3d4902ceba3014f656b021ba003b3140fab1b27b68055b48a4f7e450a3ca4f42

Contents?: true

Size: 536 Bytes

Versions: 6

Compression:

Stored size: 536 Bytes

Contents

describe Ppl::Format::Contact::Organization do

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

  describe "#process" do

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

    it "should return the contact's organization if it is set" do
      @contact.organizations.push("Example Ltd")
      @format.process(@contact).should eq "Example Ltd"
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ppl-1.14.1 spec/ppl/format/contact/organization_spec.rb
ppl-1.14.0 spec/ppl/format/contact/organization_spec.rb
ppl-1.13.0 spec/ppl/format/contact/organization_spec.rb
ppl-1.12.0 spec/ppl/format/contact/organization_spec.rb
ppl-1.11.0 spec/ppl/format/contact/organization_spec.rb
ppl-1.10.0 spec/ppl/format/contact/organization_spec.rb