Sha256: eefa1f16500d55860568440abad3ff8cdbfb5407dec8755df8374eebe4324b0f

Contents?: true

Size: 764 Bytes

Versions: 13

Compression:

Stored size: 764 Bytes

Contents

describe Ppl::Entity::PhoneNumber do

  before(:each) do
    @phone_number = Ppl::Entity::PhoneNumber.new
  end

  describe "#number" do
    it "should return a value" do
      @phone_number.number.should eq nil
    end
  end

  describe "#preferred" do
    it "should be false by default" do
      @phone_number.preferred.should eq false
    end
  end

  describe "#type" do
    it "should return a value" do
      @phone_number.type.should eq nil
    end
  end

  describe "#initialize" do
    it "should accept a number" do
      phone = Ppl::Entity::PhoneNumber.new(12345)
      phone.number.should eq 12345
    end
    it "should accept a type" do
      phone = Ppl::Entity::PhoneNumber.new(nil, "cell")
      phone.type.should eq "cell"
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ppl-3.0.1 spec/ppl/entity/phone_number_spec.rb
ppl-3.0.0 spec/ppl/entity/phone_number_spec.rb
ppl-2.4.1 spec/ppl/entity/phone_number_spec.rb
ppl-2.4.0 spec/ppl/entity/phone_number_spec.rb
ppl-2.3.3 spec/ppl/entity/phone_number_spec.rb
ppl-2.3.2 spec/ppl/entity/phone_number_spec.rb
ppl-2.3.1 spec/ppl/entity/phone_number_spec.rb
ppl-2.3.0 spec/ppl/entity/phone_number_spec.rb
ppl-2.2.0 spec/ppl/entity/phone_number_spec.rb
ppl-2.1.0 spec/ppl/entity/phone_number_spec.rb
ppl-2.0.0 spec/ppl/entity/phone_number_spec.rb
ppl-1.25.0 spec/ppl/entity/phone_number_spec.rb
ppl-1.24.0 spec/ppl/entity/phone_number_spec.rb