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