Sha256: aa94539087609012b80b0154eda3cbabd228326245cd8e96914365d708e797c4

Contents?: true

Size: 526 Bytes

Versions: 19

Compression:

Stored size: 526 Bytes

Contents

describe Ppl::Format::Contact::PhoneNumber do

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

  describe "#process" do

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

    it "should return the contact's phone number if it is set" do
      @contact.phone_number = "0123456789"
      @format.process(@contact).should eq "0123456789"
    end

  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ppl-1.9.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.8.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.7.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.6.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.5.3 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.5.2 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.5.1 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.5.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.4.1 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.3.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.2.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.1.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.6 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.5 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.4 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.3 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.1 spec/ppl/format/contact/phone_number_spec.rb
ppl-1.0.0 spec/ppl/format/contact/phone_number_spec.rb
ppl-0.9.0 spec/ppl/format/contact/phone_number_spec.rb