Sha256: 39d8f5c49b18223cc1adb9021909910ccfdf0c781bf5b7965fe44374511e85c2

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 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 "#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

5 entries across 5 versions & 1 rubygems

Version Path
ppl-1.23.0 spec/ppl/entity/phone_number_spec.rb
ppl-1.22.2 spec/ppl/entity/phone_number_spec.rb
ppl-1.22.1 spec/ppl/entity/phone_number_spec.rb
ppl-1.22.0 spec/ppl/entity/phone_number_spec.rb
ppl-1.21.0 spec/ppl/entity/phone_number_spec.rb