Sha256: eb7b13ef278b2349761cc2caa4ff35f0e4cdf99029878d4864fc7a27bfcf7664

Contents?: true

Size: 558 Bytes

Versions: 13

Compression:

Stored size: 558 Bytes

Contents

describe Ppl::Entity::EmailAddress do

  before(:each) do
    @email_address = Ppl::Entity::EmailAddress.new
  end

  describe "#address" do
    it "should return a value" do
      @email_address.address.should eq nil
    end
  end

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

  describe "#initialize" do
    it "should accept an address" do
      email = Ppl::Entity::EmailAddress.new("bob@example.org")
      email.address.should eq "bob@example.org"
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

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