Sha256: a7e2a4116ef3f3e14efad5c3d4c8373b2bd3aed43bad4ca0cc0f7d38553ddeeb

Contents?: true

Size: 520 Bytes

Versions: 25

Compression:

Stored size: 520 Bytes

Contents

describe Ppl::Format::Contact::Birthday do

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

  describe "#process" do

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

    it "should return the contact's birthday if it is set" do
      @contact.birthday = Date.parse("1970-01-01")
      @format.process(@contact).should eq "1970-01-01"
    end

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

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